PowerTip: Use PowerShell and WSMan to Obtain Service Info

The Scripting Guys


Summary: Use Windows PowerShell and WSMan to obtain service information about WinRM.

Hey, Scripting Guy! Question How can I use Windows PowerShell 3.0 with WSMan to query service information?

Hey, Scripting Guy! Answer Use the Get-WsmanInstance cmdlet and specify a resource URI.

This example obtains information about the WinRM service on a remote computer named DC1:

get-wsmaninstance wmicimv2/win32_service -selectorset @{name=”winrm”} -computer dc1

The Scripting Guys
Dr Scripto

Follow Dr   

No Comments.