< Back

Test-CScheduledTask

Sun Jan 12, 2020 11:32 pm

NAME Test-CScheduledTask



SYNOPSIS

Tests if a scheduled task exists on the current computer.





SYNTAX

Test-CScheduledTask [[-Name] <String>] [<CommonParameters>]





DESCRIPTION

The `Test-CScheduledTask` 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.





PARAMETERS

-Name <String>

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.



Required? false

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-CScheduledTask -Name 'AutoUpdateMyApp'



Demonstrates how to test if a scheduled tasks exists.











RELATED LINKS

Get-CScheduledTask