Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Delete Scheduled Task

$
0
0

Summary: Use Windows PowerShell to delete a scheduled task.

Hey, Scripting Guy! Question How can I use Windows PowerShell to delete a scheduled task?

Hey, Scripting Guy! Answer Use the Unregister-ScheduledTask function. By default, this command will prompt for confirmation. Therefore,
           if you want to use a Windows PowerShell script to remotely delete the scheduled task, you will need to supply
           confirmation in the command. Here is an example:

Unregister-ScheduledTask -TaskName applog -Confirm:$false

Note  This command was introduced in Windows 8 and Windows Server 2012 in the Scheduled Task module,
and it must be run with admin rights.


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>