Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Using PS to query service state on multiple servers

$
0
0

I'm trying to use the below PS command to query the service state on mulitple servers. However the command is only returning the first server in the list. And this command was copied straight from the PS help. Any ideas why this might be happening?

get-service -name winrm -computername Server01, Server02  | format-table -property MachineName, St
atus, Name, DisplayName -auto


Viewing all articles
Browse latest Browse all 15028

Trending Articles



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