Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Service Monitor

A PowerShell script to monitor and enforce Windows service states.
Reads a CSV with service names and desired states (Running/Stopped),
attempts to correct mismatches, and logs results in the Logs folder.

How it works

  • Load service list from Services.csv (Name,Status)
  • Check current status of each service
  • If status differs, attempt to Start or Stop the service
  • Log every action and result to a timestamped log file under Logs

Example CSV

Name,Status
Spooler,Running
wuauserv,Stopped

Run

# Run the script (requires Administrator privileges)
.\ServiceMonitor.ps1

License

MIT

About

PowerShell script to monitor Windows services, enforce desired state (Running/Stopped), and log results.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages