|
SAPIENScripter -> RE: determine service status (10/8/2008 7:30:12 AM)
|
Use the Get-WMIObject to get service objects. Since you only want a particular service, you would use something like this: get-wmiobject win32_service -computername SERVER01 -filter "name='spooler'" | Select SystemName,State To process a text list of computers, get-content servers.txt | foreach { get-wmiobject win32_service -computername SERVER01 -filter "name='spooler'" | Select SystemName,State }
|
|
|
|