Power Shell Script to reboot iQSonar Service
The iQSonarCheckService.ps1 Script Attached will allow a restart of iQSonar Service at schedule. Simple validation to check if the service is stopped and if it is it will start it. Same applies for started service which will result in reset.
The script can run as part of schedule job. See attached Word doc with step by step how to.
Step-by-step guide to create.
- go to Task Scheduler and press on Create task
- Enter name to identify the job and Make sure the radio button is clicked
- Go to Trigger tab and Press new to set up schedule
- Follow screenshot to enable the job to run every 1 hour and Press ok
- Go to Action tab and press new. Fill out as per screenshot. The main point: in the Add Arguments (optional) -type "location of ps1 script" example "c:\iQSonarCheckService.ps1".
- Check the details as per screenshot
- Press ok to save.
Related articles