Monitor Services (Active!)

Here’s a one-liner solution script to actively monitor services. The script gets all services with a startup mode ‘Automatic’ and if some are stopped, starts them.
Has to be scheduled, every 5 minutes for example. (“-Repeat” option)

$Services=Get-WmiObject -Class Win32_Service | Where {($_.StartMode -eq "Auto") -and ($_.State -eq "Stopped")} | Start-Service -ErrorAction SilentlyContinue

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top