Skip to content

Instantly share code, notes, and snippets.

@kagarlickij
Created January 8, 2017 17:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kagarlickij/ef1c20975752a1c0c4d41af43ccc0846 to your computer and use it in GitHub Desktop.
Save kagarlickij/ef1c20975752a1c0c4d41af43ccc0846 to your computer and use it in GitHub Desktop.
Check if Windows services with startup type Automatic are running
# Using PowerShell
Get-Service | Where-Object {$_.StartType -eq 'Auto' -and $_.Status -ne 'Running'}
# Using WMI
Get-WmiObject Win32_Service | Where-Object {$_.StartMode -eq 'Auto' -and $_.Status -ne 'OK'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment