PowerTip: Use PowerShell to disable all scheduled tasks in folder


Summary: Use Windows PowerShell to disable all scheduled tasks in a specific folder.

Hey, Scripting Guy! Question How can I use Windows PowerShell to disable all scheduled tasks in a particular folder?

Hey, Scripting Guy! Answer Use the Get-ScheduledTask cmdlet to enumerate the scheduled tasks in the folder, and then pipe the objects to the Disable-ScheduledTask cmdlet, for example:

Get-ScheduledTask -TaskPath "\UpdateTasks\" | Disable-ScheduledTask

Comments (0)

Skip to main content