Script dumpster: Get-AutoStartService
The Problem A frequent issue on servers is when services that are supposed to start simply haven’t started.
There’s a simple one-liner that can show you the services that meet these requirements for you:
1 Get-WmiObject -Class Win32_Service -Filter "Startmode = 'Auto' AND State = 'Stopped' AND ExitCode != 0" Want to directly start up these services? Not a problem!
1 Get-WmiObject -Class Win32_Service -Filter "Startmode = 'Auto' AND State = 'Stopped' AND ExitCode !
