Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell and WSMan to Obtain Service Info

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>