次の方法で共有


Disable a Task from Running

Applies To: Windows Server 2008, Windows Vista

If you want to stop a task from running for a certain period of time, you can disable the task. The task can be enabled at a later time so that it is allowed to run. For more information, see Enable a Task to Run.

To disable a task from running 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 disable.

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

  4. In the Actions pane, click Disable. The Disable command will only be available in the Actions pane if the task is enabled.

To disable a task from running 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> /DISABLE
    

To view the help for this command, type:

schtasks /Change /?

Additional references

Run a Task on Demand

Enable a Task to Run

Command-line syntax notation