Skip to main content

Automatically Run Programs and Windows Task Scheduler

Introduction

The Task Scheduler has a wide variety of uses such as automatically triggering job schedule, sending email notifications to the appropriate users etc. Scheduling tasks ensures that the productivity and optimum management. Manual scheduling consumes a whole lot of time and resources.

Scheduling a task by either creating a basic task using the ‘Create Basic Task’ or by creating a task using the ‘Create Task’ wizard screen.

Creating a Task

Here, we create the task by selecting the ‘Create Task’. To start, open the Task Scheduler, click the Create Task link at the right side of the Task Scheduler window screen. This link opens an easy-to-use wizard screen and will walk through the process of creating a task. If more advanced options are required click Create Task instead.

1

Specify a name and description for the task. This will help to remember what the task does later.

2

Select -trigger and opt the “Daily” option. The task runs daily, weekly, monthly, or only once. In addition, we can setup the task run when the computer starts or when the user logs on and can also have the task start in response to an event ID in the Windows event log history.

3

If you selected daily, weekly, monthly, or one time, you’ll be prompted to specify a specific time for the event to occur. In the below screen-shot, we have selected the ‘Daily’ option. The job will get start every day 7 AM at every 15 minutes for the duration of 17 hours. Means the job will start by 7 AM and it will end-up at 12 AM (7+17=24 hours).

4

Then, in the below screen we can opt any of the option like start a program, send an email, or display a message in response to the trigger you specific earlier.

5

To run a program, paste the required files under C:drive. Click the Browse button and locate the placed .exe/.bat/.ps file. In Start in (optional) paste the .bat file path only. By clicking ‘Next’ it will launch the task automatically at the scheduled time.

6

 

Now we are almost done – Windows will display the details of the task we have created. Click the Finish button and the task will be created. To modify further Advanced Settings enable the option “Open the Properties dialog for this task when I click Finish”.

 

7

Conclusion

This is one time implementation and no further maintenance is required. It reduces manual effort and based on the result it triggers email notifications to the respective users.

 

Archana N

Archana N

Archana.N. works as Senior Software Engineer with Trigent Software. She has extensive experience in SharePoint applications based on SharePoint Online, SharePoint 2013, and SharePoint 2010. She also has good working knowledge of 'Synchronization of data' from CRM to SharePoint and vice versa.