How to restart Windows Services Using Task Scheduler?

dateJune 26, 2020

SOLIDWORKS PDM Server uses two Server Services. One is Archive Server Service another is Database Server Services.

The services may need to be restarted periodically to ensure the consistent Server performance. And we can set up the restarting task runs during the non-working hour so that it will not affect the normal use of PDM system.

If you face the PDM performance problems, you may want to set up this task by following the below steps.


Step 1: Start > Control Panel.

Step 2: Select the Administrative Tools.



Step 3: Open the Task Scheduler by typing “Task” in the Windows search box:



Step 4: Click the “Task Scheduler Library” and select “Create a Basic Task…” from the Actions list on the right.



Step 5: Name the task as the SOLIDWORKS PDM Archive server restart. Fill in the Description of the task, and click Next.



Step 6: Select the trigger as Daily, Weekly, or Monthly based on you needs. Click Next.



In this case, we select is Daily.

Pick a time where there will be no activity such as 7:10:10 AM. And click Next



Step 7: Click Next and for the Action select “Start a program”. Click Next



For the Program/Script type Can Browse the file. Click Next



For the script file you can use Notepad to edit and save as a .bat file.



Step 8: Before Finish, select the Open the Properties dialog checkbox, click Finish.


In the General tab select “Run whether user is logged in or not”. Click OK.



Fill in the user name and password. The user must have sufficient administrative permission to execute the script.



Finally, you will see the task as follow:


That is it, now you have successfully defined a task and it is good to go!