PowerTip: Use PowerShell to disable all scheduled tasks in folder

Doctor Scripto

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

0 comments

Discussion is closed.

Feedback usabilla icon