February 26th, 2016

PowerTip: Use PowerShell to disable all scheduled tasks in folder

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.