Author Posts

February 12, 2017 at 2:49 pm

How can we run this script for generating the report for remote computers ? Thanks in advance.

February 12, 2017 at 2:52 pm

Need script to list services from a local or remote computer where the StartMode property is set to "Automatic" and where the state is different from RUNNING

February 12, 2017 at 3:22 pm

I think this is what you are looking for but may be wrong.
As far as I am aware you can't get all of this information from Get-Service. Instead you'll need to use Get-CimInstance (or Get-WMIObject)

Get-CimInstance -ComputerName Server1 -ClassName Win32_Service | Where {($_.StartMode -eq "Automaic") -and ($_.Status -ne "Running")}