如何使用實用程式 schtasks 停用 Windows 10 中的 Windows 排程任務?

如何使用實用程式 schtasks 停用 Windows 10 中的 Windows 排程任務?

如何在 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 /?

我懷疑delete實際上會禁用它。

那我該怎麼辦呢?

更新:

我需要這樣做僅有的由公用事業公司schtasks

答案1

使用 Powershell!

Disable-ScheduledTask -TaskName "Adobe Flash Player Update"



TaskPath                                       TaskName                          State
--------                                       --------                          -----
\                                              Adobe Flash Player Updater        Disabled

編輯:

使用 schtasks.exe:

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

SUCCESS: The parameters of scheduled task "Adobe Flash Player Updater" have been changed.

答案2

圖形使用者介面:

  1. 開啟“任務規劃程序”
  2. 開啟「任務計劃程式庫」->「Microsoft」->「Windows」、「應用程式體驗」。
  3. 透過右鍵點選選項停用“Microsoft 相容性評估器”。

命令:

schtasks /Change /Disable /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser"

答案3

最簡單的方法是使用任務規劃程式 MMC 管理單元。您可以在 Cortana 搜尋框中鍵入「任務規劃程式」或執行 mmc.exe 並手動新增管理單元。一旦你獲得 GUI,只需右鍵單擊該任務並選擇“禁用” - 它仍然在那裡,只是隱藏了:)我不確定為什麼命令行發生了變化 - 奇怪......

相關內容