Tests if a scheduled task exists on the current computer.
Test-ScheduledTask [[-Name] <String>] [<CommonParameters>]
Test-ScheduledTask function uses
schtasks.exe to tests if a task with a given name exists on the current computer. If it does,
$true is returned. Otherwise,
$false is returned. This name must be the full task name, i.e. the task's path/location and its name.
|Name||Type||Description||Required?||Pipeline Input||Default Value|
The name of the scheduled task to check. This must be the full task name, i.e. the task's path/location and its name.
Test-ScheduledTask -Name 'AutoUpdateMyApp'
Demonstrates how to test if a scheduled tasks exists.