www.gsx.com | log in | register

Last update: . Author: GSX Support (Yann) .

How To Restart Windows Services Using Task Scheduler

For increased stability, you may wish to restart Windows Services on a regular basis. This allows to recycle processes and memory threads to keep a healthy system running.

To recycle Windows Services you can simply create a Scheduled Task using two actions with the NET commands. The first one to stop the service, the second one to start the service.

GSX Monitor 10.x.x+

Instructions 

  1. Open the Windows Services Management Console by typing services.msc in the run box.
  2. Locate the GSX Monitor service and open its properties.
  3. Take note of the Service name for future use:
  4. Open the Task Scheduler by typing Task in the Windows search box:
  5. Select Create a Basic Task from the Actions list on the right:
  6. Name the task Stop GSX Monitor:
  7. Click Next and select Daily Trigger:
  8. Pick a time where there will be no activity such as 3:00 AM:
  9. Click Next and for the Action select Start a program:
  10. For the Program/Script type NET and add the arguments Stop "GSX Monitor" or service name noted earlier (step #3) if different:
  11. Before Finishing, select the Open the Properties dialog option:
  12. In the General tab select Run whether user is logged in or not and Run with highest privileges:

This task will stop the GSX Monitor service, daily at a chosen time, now we need to create another task to launch it again.

We will start GSX Monitor 5 minutes later to give the Windows Service some time to close all pending tasks before restarting.

  1. Select Create a Basic Task from the Actions list on the right.
  2. Name the task as Start GSX Monitor Service:
  3. Set the Trigger to start Daily at 5 minutes after the stop time set previously:
  4. Click Next and for the Action select Start a program.
  5. For the Program/Script type NET and add the arguments Start "GSX Monitor" or service  name noted earlier (step #3) if different:
  6. Before Finishing, select the Open the Properties dialog option as before.
  7. In the General tab, select Run whether user is logged in or not and Run with highest privileges.

You have now created two scheduled tasks, one will stop the GSX Monitor service and the other will start it again 5 minutes later.

 


Was this article helpful?

0 out of 0 found this helpful




Not finding what you are looking for?

Have more questions? Submit a request