This script will check the listed services in the array below and attempt to start them if they are stopped. If the service is disabled, it won't be able to start it. This script should be ran as often as needed to verify the services are running as expected. Replace Service1 and Service2 with the services needed. You can add more to the array as needed. Depending on your setup, you many need to set "Set-ExecutionPolicy" on the machine to allow unsigned scripts to run. Another option would be to run this script with the following command "Powershell.exe -executionpolicy bypass -Command service_checker.ps1"
-
Notifications
You must be signed in to change notification settings - Fork 0
3dhomejoe/Service-Checker
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published