Skip to content
  • There are no suggestions because the search field is empty.

How to create Task Scheduler to automatically restart Titan Service weekly

Question: How to restart Titan Service Weekly
 
Reasoning: CPU and Memory are spiking and want to restart Titan Service weekly to normalize the resources usage
 
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 a task scheduler, you can run commands and execute scripts on a specific day and time.

Windows Services
In this demo, I am going to restart Titan SFTP Server Service.
 

Getting Started
Search task scheduler in Windows search.
TaskScheduler
Right-click on Task Scheduler click New Folder give a name to the folder like Service reset and click OK.
NewFolder

Making a folder makes your tasks separate so that you can manage them easily.
Now right-click on the newly created folder, select Create Task, and provide the task name. In the general tab, enter Name and description, choose Run whether the user is logged on or not, and select Run with highest privileges.


In the triggers tab, provide the scheduled date and time when you want to restart the service.
 
 
Add action and put NET in the Program/script path STOP “ServiceName ” in the arguments text box, and click OK.
 
Add another one in Action tab and put NET in the Program/scripts path and put START “ServiceName” in the Add arguments(optional) text.
 
Keep conditions and check Power options as selected in the 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.
Triggers
 
In the Task scheduled, you can see a created task, if can run right away or wait for the given scheduled time.

Need More Help? We’ve Got You Covered.

If you didn’t find what you were looking for, our support team is here to help. Submit a ticket and one of our experts will follow up shortly.