{"id":1929,"date":"2016-09-01T18:35:53","date_gmt":"2016-09-01T18:35:53","guid":{"rendered":"http:\/\/microsoftgeek.com\/?p=1929"},"modified":"2016-09-01T18:35:53","modified_gmt":"2016-09-01T18:35:53","slug":"use-powershell-to-disable-scheduled-tasks","status":"publish","type":"post","link":"https:\/\/microsoftgeek.com\/?p=1929","title":{"rendered":"Use PowerShell to disable scheduled tasks"},"content":{"rendered":"<p>How can I use Windows PowerShell to disable a scheduled task?<\/p>\n<p>Use the <strong>Disable-ScheduledTask<\/strong> cmdlet and specify the task name, for example:<\/p>\n<h3><em><strong>Disable-ScheduledTask -TaskName \u201cSystemScan\u201d<\/strong><\/em><\/h3>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>How can I use Windows PowerShell to disable all scheduled tasks in a particular folder?<\/p>\n<p>Use the <strong>Get-ScheduledTask<\/strong> cmdlet to enumerate the scheduled tasks in the folder, and then pipe the objects to the <strong>Disable-ScheduledTask<\/strong> cmdlet, for example:<\/p>\n<h3><em><strong>Get-ScheduledTask -TaskPath \u201c\\UpdateTasks\\\u201d | Disable-ScheduledTask<\/strong><\/em><\/h3>\n","protected":false},"excerpt":{"rendered":"<p>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 \u201cSystemScan\u201d &nbsp; &nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[],"class_list":["post-1929","post","type-post","status-publish","format-standard","hentry","category-powershell"],"_links":{"self":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1929","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1929"}],"version-history":[{"count":1,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1929\/revisions"}],"predecessor-version":[{"id":1930,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=\/wp\/v2\/posts\/1929\/revisions\/1930"}],"wp:attachment":[{"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1929"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1929"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/microsoftgeek.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1929"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}