Using the Scheduled Task Wizard, you can define a task using the following steps:
Start the Scheduled Task Wizard by double-clicking Add Scheduled Task in the Scheduled Task folder. Read the Welcome dialog box and then click Next.
Using the second dialog box in the Scheduled Task Wizard, select a program to schedule. The dialog box shows key applications registered on the system, such as Disk Cleanup and Synchronize. The dialog box doesn't show any of the shell scripts you may have created, however.
Click Browse to open the Select Program to Schedule dialog box. Use the dialog box to find the command-shell or WSH script you want to run.
Type a name for the task. Tasks can be scheduled to run daily, weekly, or monthly; or when a specific event occurs, such as when the task's user logs on.
Select a run schedule for the tasks. Tasks can be scheduled to run periodically or when an event occurs, such as when specific user logs on or when a system is rebooted.
Click Next, and select a date and time to run the scheduled task. The next dialog box you see depends on when the task is scheduled to run.
If you have selected One Time Only for running the task, a date and time dialog box appears, as shown in Figure 1. Set the start time and start date.
Figure 1 Using the Scheduled Task Wizard to define the frequency of initiating an event or task.
With tasks that run when the computer starts or when the task's user logs on, you don't have to set the start date and time. The task runs automatically when the startup or logon event occurs.
After you have configured a start date and time, click Next to continue. Type a user name and password that can be used when running the scheduled task. The user name must have the appropriate permissions and privileges to run the scheduled task.
The final wizard dialog box provides a summary of the task you're scheduling. Click Finish to complete the scheduling process. If an error occurs when you create the task, you'll see the error prompt. Click OK. The task should still be created. In Explorer, double-click the task to correct the problem in the related dialog box.