How To Restart Windows Service Using Task Scheduler

Task Scheduler

The Task Scheduler is a Windows component that can automatically run tasks at a specific time or in response to a specific event. For example, tasks can be run when the computer starts or when a user logs in. You can start tasks when a specific event occurs and using task scheduler you can run commands and execute scripts at a specific day and time.

Windows Services

In this demo, I am going to restart Cellular Time Service.

Getting Started

Search task scheduler in Windows search.

Right click on Task Scheduler and click New Folder and give a name to the folder like Service reset and click OK.

Making a folder makes your tasks separate, so you can manage easily.

Now right click on new created folder and select Create Task and provide task name. In general tab enter Name and description and choose Run whether user is logged on or not and select Run with highest privileges.

In the triggers tab, provide the schedule date and time when you want to restart the service.

In actions tab, Enter NET in Program/scripts path and put START “ServiceName” in Add arguments(optional) text.

Also add one more action and put NET in Program/script path and STOP “ServiceName ” in arguments text box and click OK.

Keep conditions and check Power options as selected in given screenshot.

Your settings might be different but I am keeping Allow task to be run on demand and Run task as soon as possible after a scheduled start is mossed and click OK.

In the Task scheduled, you can see a created task, if can run right away or wait for the given schedule’s time.