Powershell - Check if all the services with StartMode AUTOMATIC are actually Running
This post was published in 2011 and may be outdated.
Check if all the services with StartMode AUTOMATIC are actually Running:
Get-WmiObject Win32_Service -ComputerName . |`
where {($_.startmode -like "*auto*") -and `
($_.state -notlike "*running*")}|`
select DisplayName,Name,StartMode,State|ft -AutoSize
Originally published on PoshCode (now offline); archived copy.
Leave a comment