Uninstalls a scheduled task on the current computer.
Uninstall-ScheduledTask [-Name] <String> [<CommonParameters>]
Uninstall-ScheduledTask function uses
schtasks.exe to uninstall a scheduled task on the current computer. If the task doesn't exist, nothing happens.
The name of the scheduled task to uninstall.
Uninstall-ScheduledTask -Name 'doc'
Demonstrates how to delete a scheduled task named
Uninstall-ScheduledTask -Name 'doc' -Force
Demonstrates how to delete a scheduled task that is currently running.