如何使用实用程序 schtasks 在 Windows 10 中禁用 Windows 计划任务?

Osk*_* K. 1 windows scheduled-tasks

如何在 Windows 10 中禁用计划任务?他们建议我使用/disable但显然该选项已经在 Windows 10 中消失,并且在以前版本的 Windows 中可用。

>schtasks  /?

SCHTASKS /parameter [arguments]

Description:
    Enables an administrator to create, delete, query, change, run and
    end scheduled tasks on a local or remote system.

Parameter List:
    /Create         Creates a new scheduled task.

    /Delete         Deletes the scheduled task(s).

    /Query          Displays all scheduled tasks.

    /Change         Changes the properties of scheduled task.

    /Run            Runs the scheduled task on demand.

    /End            Stops the currently running scheduled task.

    /ShowSid        Shows the security identifier corresponding to a scheduled task name.

    /?              Displays this help message.

Examples:
    SCHTASKS
    SCHTASKS /?
    SCHTASKS /Run /?
    SCHTASKS /End /?
    SCHTASKS /Create /?
    SCHTASKS /Delete /?
    SCHTASKS /Query  /?
    SCHTASKS /Change /?
    SCHTASKS /ShowSid /?
Run Code Online (Sandbox Code Playgroud)

我怀疑delete实际上会禁用它。

那我该怎么做呢?

更新:

我需要做到这一点由公用事业schtasks

Sme*_*ijp 5

使用 Powershell!

Disable-ScheduledTask -TaskName "Adobe Flash Player Update"



TaskPath                                       TaskName                          State
--------                                       --------                          -----
\                                              Adobe Flash Player Updater        Disabled
Run Code Online (Sandbox Code Playgroud)

编辑:

使用 schtasks.exe:

schtasks.exe /change /tn "Adobe Flash Player Updater" /disable

SUCCESS: The parameters of scheduled task "Adobe Flash Player Updater" have been changed.
Run Code Online (Sandbox Code Playgroud)