Use PowerShell to disable scheduled tasks

How can I use Windows PowerShell to disable a scheduled task?

Use the Disable-ScheduledTask cmdlet and specify the task name, for example:

Disable-ScheduledTask -TaskName “SystemScan”

 

 

How can I use Windows PowerShell to disable all scheduled tasks in a particular folder?

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