Compartilhar via


Change an Existing Task

Applies To: Windows Server 2008, Windows Vista

You can change an existing task by changing the general properties, triggers, actions, conditions, or settings of the task. For more information about deleting a task, see Delete a Task.

Changing an Existing Task

  • Using the Windows interface

  • Using a command line

To change an existing task by using the Windows interface

  1. If Task Scheduler is not open, start Task Scheduler. For more information, see Start Task Scheduler.

  2. Find and click the task folder in the console tree that contains the task you want to change.

  3. In the console window, click the task that you want to change.

  4. Click Properties in the Action pane. The Task Properties dialog box will appear.

  5. In the Task Properties dialog box:

    1. Click the General tab to view the task's general properties that you can change. For more information about these properties, see General Task Properties.

    2. Click the Triggers tab to view the task's triggers. Select a trigger from the list of triggers on the tab and click the Edit button to change the selected trigger's settings, click the New button to create a new trigger, or click the Delete button to delete the selected trigger. For more information about triggers, see Triggers.

    3. Click the Actions tab to view the task's actions. Select an action from the list of actions on the tab and click the Edit button to change the selected action's settings, click the New button to create a new action, or click the Delete button to delete the selected action. For more information about actions, see Actions.

    4. Click the Conditions tab to view the task's conditions that you can change. For more information about these conditions, see Task Conditions.

    5. Click the Settings tab to view the task's settings that you can change. For more information about these settings, see Task Settings.

  6. Click the OK button on the Task Properties dialog box when you are finished changing the task. This will register the task again. If the task has an action that is triggered when the task is registered, the action will be executed. If you have not made any changes to the task, click the Cancel button.

To change an existing task by using a command line

  1. Open a command prompt. To open a command prompt, click Start, click All Programs, click Accessories, and then click Command Prompt.

  2. Type:

    schtasks /Change [/S <system> [/U <username> [/P [<password>]]]] 
    /TN <taskname> { [/RU <runasuser] [/RP <runaspassword>] [/TR <taskrun>] 
    [/ST <starttime>] [/RI <interval>] [ {/ET <endtime> | /DU <duration>} [/K] ] 
    [/SD <startdate>] [/ED <enddate>] [/ENABLE | /DISABLE] [/IT] [/Z] }
    

To view the help for this command, type:

schtasks /Change /?

Additional references

Delete a Task

Manage or Create a Task on a Remote Computer

Command-line syntax notation