To Schedule a task in Windows 2008 R2
Click on Start->Administrative Tools -> Server Manager
In the Server Manager, expand the Configuration Node. Double click on Task Scheduler.
Select the Create Task from right hand side menu. Specify the Task Name as SampleTask and select the security options
Open the Actions tab and click on New. This will open the New Action window
Select “Start a program” as action. Click on Browse and go to the executable or command file.
Specify the parameters required to run the executable or Command.
Click on the Triggers tab. Select the New button. This will open the New Trigger window.
Select the Begin the task as “On a schedule”.
Select Daily option from settings and start date as today. Specify the start time as 12:00AM[depends on the requirement].
In the “Advance Settings”, Check Repeat task every check box and select 10 minutes. In the “for a duration of” drop down select 1 day. And click on OK.
Click OK in trigger editor Window
Click OK in the Create Task Window.