Uninstall-ScheduledTask

Uninstalls a scheduled task on the current computer.

Syntax

Uninstall-ScheduledTask [-Name] <String> [<CommonParameters>]

Description

The Uninstall-ScheduledTask function uses schtasks.exe to uninstall a scheduled task on the current computer. If the task doesn't exist, nothing happens.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
Name String

The name of the scheduled task to uninstall.

true false

EXAMPLE 1

Uninstall-ScheduledTask -Name 'doc'

Demonstrates how to delete a scheduled task named doc.

EXAMPLE 2

Uninstall-ScheduledTask -Name 'doc' -Force

Demonstrates how to delete a scheduled task that is currently running.