How to Enable or Disable Scheduled Task in Windows 10  

Page 1 of 2 12 LastLast
    How to Enable or Disable Scheduled Task in Windows 10

    How to Enable or Disable Scheduled Task in Windows 10

    Published by Category: General Tips
    07 Feb 2021
    Designer Media Ltd



    How to Enable or Disable Scheduled Task in Windows 10


    The Task Scheduler enables you to automatically perform routine tasks on a chosen computer. With this service, you can schedule any program to run at a convenient time for you or when a specific event occurs. Task Scheduler does this by monitoring whatever criteria you choose (referred to as triggers) and then executing the tasks when those criteria are met.

    Sometimes you may need to enable and disable scheduled tasks on demand as needed.

    When a task is enabled, it will show its current status as Ready or Running.

    When a task is disabled, it will show its current status as Disabled.

    This tutorial will show you how to enable or disable one or more scheduled tasks from Task Scheduler in Windows 7, Windows 8, and Windows 10.


    Contents

    • Option One: Enable or Disable Scheduled Task(s) in Task Scheduler
    • Option Two: Enable or Disable Specific Scheduled Task in Command Prompt
    • Option Three: Enable or Disable Specific Scheduled Task in PowerShell
    • Option Four: Enable or Disable All Scheduled Tasks in a Folder in PowerShell






    OPTION ONE

    Enable or Disable Scheduled Task(s) in Task Scheduler


    1 Press the Win + R keys to open the Run dialog, type taskschd.msc into Run, and click/tap on OK to open Task Scheduler.

    2 In the left pane of Task Scheduler, navigate to and open the folder (ex: "Custom Folder") the task(s) you want to enable or disable are located in. (see screenshots below)

    3 In the middle pane of the opened folder (ex: "Custom Folder"), select one or more task(s) you want to enable or disable.

    You can press and hold the Ctrl key while clicking on a task to select more than one task.


    4 Perform either action below to enable or disable the selected tasks depending in their current status.

    To Disable Task(s):
    • Click/tap on Disable under Selected Items in the right Actions pane.
    • Click/tap on Action (Alt+A) on the toolbar, and click/tap on Disable (Alt+i).
    • Right click on the selected task(s), and click/tap on Disable.

    To Enable Task(s):
    • Click/tap on Enable under Selected Items in the right Actions pane.
    • Click/tap on Action (Alt+A) on the toolbar, and click/tap on Enable (Alt+E).
    • Right click on the selected task(s), and click/tap on Enable.

    How to Enable or Disable Scheduled Task in Windows 10-enable_scheduled_task_in_task_scheduler.png How to Enable or Disable Scheduled Task in Windows 10-disable_scheduled_task_in_task_scheduler.png

    5 When finished, you can close Task Scheduler if you like.





    OPTION TWO

    Enable or Disable Specific Scheduled Task in Command Prompt


    To see more schtasks /Change command usage details, go to: Schtasks.exe | Microsoft Docs


    1 Open a command prompt or elevated command prompt depending on which account the task uses.

    If you get an access denied error message when running the command below, then it means you will need to run the command in an elevated command prompt.


    2 Do step 3 (disable) or step 4 (enable) below for what you want to do.


     3. To Disable a Specific Scheduled Task in Command Prompt

    A) Type the command below into the command prompt, and press Enter. (see screenshot below)

    (If task is in root "Task Scheduler Library" folder)
    schtasks /Change /TN "<task name>" /Disable

    OR

    (If task is in a folder other than root folder)
    schtasks /Change /TN "<folder location>\<task name>" /Disable

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task is located in Task Scheduler.

    Substitute <task name> in the command above with the actual task name (ex: "Example task") you want to disable.

    For example: schtasks /Change /TN "\Custom Folder\Example task" /Disable

    How to Enable or Disable Scheduled Task in Windows 10-disable_scheduled_task_in_command_prompt.png


     4. To Enable a Specific Scheduled Task in Command Prompt

    A) Type the command below into the command prompt, and press Enter. (see screenshot below)

    (If task is in root "Task Scheduler Library" folder)
    schtasks /Change /TN "<task name>" /Enable

    OR

    (If task is in a folder other than root folder)
    schtasks /Change /TN "<folder location>\<task name>" /Enable

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task is located in Task Scheduler.

    Substitute <task name> in the command above with the actual task name (ex: "Example task") you want to enable.

    For example: schtasks /Change /TN "\Custom Folder\Example task" /Enable

    How to Enable or Disable Scheduled Task in Windows 10-enable_scheduled_task_in_command_prompt.png


    5 When finished, you can close the command prompt if you like.






    OPTION THREE

    Enable or Disable Specific Scheduled Task in PowerShell


    This option is not available in Windows 7.


    1 Open Windows PowerShell or elevated Windows PowerShell depending on which account the task uses.

    If you get an access denied error message when running the command below, then it means you will need to run the command in an elevated Windows PowerShell.


    2 Do step 3 (disable) or step 4 (enable) below for what you want to do.


     3. To Disable a Specific Scheduled Task in Windows PowerShell

    To see more Disable-ScheduledTask command usage details, go to: Disable-ScheduledTask | Microsoft Docs

    A) Type the command below into Windows PowerShell, and press Enter. (see screenshot below)

    (If task is in root "Task Scheduler Library" folder)
    Disable-ScheduledTask -TaskName "<task name>"

    OR

    (If task is in a folder other than root folder)
    Disable-ScheduledTask -TaskPath "<folder location>\" -TaskName "<task name>"

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task is located in Task Scheduler.

    Substitute <task name> in the command above with the actual task name (ex: "Example task") you want to disable.

    For example: Disable-ScheduledTask -TaskPath "\Custom Folder\" -TaskName "Example task"

    How to Enable or Disable Scheduled Task in Windows 10-disable_scheduled_task_in_powershell.png


     4. To Enable a Specific Scheduled Task in Windows PowerShell

    To see more Enable-ScheduledTask command usage details, go to: Enable-ScheduledTask | Microsoft Docs

    A) Type the command below into Windows PowerShell, and press Enter. (see screenshot below)

    (If task is in root "Task Scheduler Library" folder)
    Enable-ScheduledTask -TaskName "<task name>"

    OR

    (If task is in a folder other than root folder)
    Enable-ScheduledTask -TaskPath "<folder location>\" -TaskName "<task name>"

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task is located in Task Scheduler.

    Substitute <task name> in the command above with the actual task name (ex: "Example task") you want to enable.

    For example: Enable-ScheduledTask -TaskPath "\Custom Folder\" -TaskName "Example task"

    How to Enable or Disable Scheduled Task in Windows 10-enable_scheduled_task_in_powershell.png


    5 When finished, you can close Windows PowerShell if you like.






    OPTION FOUR

    Enable or Disable All Scheduled Tasks in a Folder in PowerShell


    This option is not available in Windows 7.

    To see more Get-ScheduledTask command usage details, go to: Get-ScheduledTask | Microsoft Docs


    1 Open Windows PowerShell or elevated Windows PowerShell depending on which account the task uses.

    If you get an access denied error message when running the command below, then it means you will need to run the command in an elevated Windows PowerShell.


    2 Do step 3 (disable) or step 4 (enable) below for what you want to do.


     3. To Disable All Scheduled Tasks in a Folder in Windows PowerShell

    To see more Disable-ScheduledTask command usage details, go to: Disable-ScheduledTask | Microsoft Docs

    A) Type the command below into Windows PowerShell, and press Enter. (see screenshot below)

    Get-ScheduledTask -TaskPath "<folder location>\" | Disable-ScheduledTask

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task(s) are located in Task Scheduler.

    For example: Get-ScheduledTask -TaskPath "\Custom Folder\" | Disable-ScheduledTask

    How to Enable or Disable Scheduled Task in Windows 10-disable_all_scheduled_tasks_in_folder_in_powershell.png


     4. To Enable All Scheduled Tasks in a Folder in Windows PowerShell

    To see more Enable-ScheduledTask command usage details, go to: Enable-ScheduledTask | Microsoft Docs

    A) Type the command below into Windows PowerShell, and press Enter. (see screenshot below)

    Get-ScheduledTask -TaskPath "<folder location>\" | Enable-ScheduledTask

    Substitute <folder location> in the command above with the actual folder path (ex: "\Custom Folder") the task(s) are located in Task Scheduler.

    For example: Get-ScheduledTask -TaskPath "\Custom Folder\" | Enable-ScheduledTask

    How to Enable or Disable Scheduled Task in Windows 10-enable_all_scheduled_tasks_in_folder_in_powershell.png


    5 When finished, you can close Windows PowerShell if you like.


    That's it,
    Shawn Brink





  1. Posts : 736
    Windows 10 x64 Pro
       #1

    does a way exist to "toggle" a scheduled task between enabled and disabled? I have 3 that I'd love to be able to click on or off from the desktop but having 6 scripts to go between ready and disabled for 3 tasks has me second guessing if i should bother :P
      My Computer


  2. Posts : 61,562
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #2

    klepp0906 said:
    does a way exist to "toggle" a scheduled task between enabled and disabled? I have 3 that I'd love to be able to click on or off from the desktop but having 6 scripts to go between ready and disabled for 3 tasks has me second guessing if i should bother :P
    Hello mate,

    I suppose you could create separate shortcuts with the enable/disable commands to toggle them.
      My Computers


  3. Posts : 736
    Windows 10 x64 Pro
       #3

    Brink said:
    Hello mate,

    I suppose you could create separate shortcuts with the enable/disable commands to toggle them.
    yea, thats what i was trying to avoid lol. I think you can script it to behave as a toggle in powershell, just gotta figure out how. I wasnt sure if there was a way with a simple batch script but evidently not.

    will let ya know what i find in case it merits adding to the tutorial.
      My Computer


  4. Posts : 9
    Windows 10 x64
       #4

    can't disable XblGameSaveTask


    Hi,
    The task exist under Task Scheduler (GUI) and also appears using schtasks command:
    Code:
    schtasks /query /NH /FO CSV
    ..."\Microsoft\XblGameSave\XblGameSaveTask","N/A","Ready"
    I'm looking a way to disable this task just using CMD. I tried:
    Code:
    C:\Users\Administrator>schtasks /change /TN "\Microsoft\XblGameSave\XblGameSaveTask" /disable
    ERROR: The system cannot find the path specified.
    I tried to disable from Autoruns (Sysinternals) but it also fails:
    How to Enable or Disable Scheduled Task in Windows 10-image.png

    I suspect that the root of the problem may be in the user account (SYSTEM):
    How to Enable or Disable Scheduled Task in Windows 10-image.png

    Any comment or help are most welcome.

    Bedfford
      My Computer


  5. Posts : 61,562
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    Hello @Bedfford,

    Using the command below was able to disable the task for me in an elevated command prompt.

    schtasks /Change /TN "\Microsoft\XblGameSave\XblGameSaveTask" /Disable

    Are you able to disable the task in Task Scheduler?
      My Computers


  6. Posts : 9
    Windows 10 x64
       #6

    Thanks for your reply. Glad to know this works on your system. I tried but fail:
    How to Enable or Disable Scheduled Task in Windows 10-image.png
    Now I think there is a type of corruption in my machine.
    I will find a way to restore the Scheduled Tasks to their default values.
    Thanks!
      My Computer


  7. Posts : 61,562
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #7

    Bedfford said:
    Thanks for your reply. Glad to know this works on your system. I tried but fail:
    Now I think there is a type of corruption in my machine.
    I will find a way to restore the Scheduled Tasks to their default values.
    Thanks!
    What "Name" and "Location" does it show in Task Scheduler like below?

    How to Enable or Disable Scheduled Task in Windows 10-task.png
      My Computers


  8. Posts : 9
    Windows 10 x64
       #8

    name: XblGameSaveTask
    Location: \Microsoft\XblGameSave

    How to Enable or Disable Scheduled Task in Windows 10-image.png
      My Computer


  9. Posts : 16,017
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
       #9

    Hello @Bedfford,

    Does the below NOT work?

    [1] Open an Elevated CMD Prompt [ Administrative ] by pressing the Win + X keys together and selecting Command Prompt (Admin).
    [2] Type the below Command in the Elevated CMD Prompt and press Enter.

    Code:
    
    schtasks /Change /TN "\Microsoft\XblGameSave\XblGameSaveTask" /Disable

    I hope this helps.
    Last edited by Paul Black; 27 Aug 2021 at 06:06.
      My Computer


 

Tutorial Categories

How to Enable or Disable Scheduled Task in Windows 10 Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 07:27.
Find Us




Windows 10 Forums