Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

query one service on computers help

$
0
0
Windows 2008 R2 OS
We have about 100 Windows 2008 R2 computers and just find out that
one service name abc (ex) is missing on several computers.  I need to
find out whether this service is missing on other computers too.
I use the powershell get-service but it did not tell which server
does not have service ABC?
here is my script: what am I missing?
$servers = gc "C:\servers.txt"
get-service -computer $servers -name "ABC"|Select Name, MachineName, Status

Viewing all articles
Browse latest Browse all 21975

Trending Articles



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