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