< Back

Uninstall-CScheduledTask

Sun Jan 12, 2020 11:42 pm

NAME Uninstall-CScheduledTask



SYNOPSIS

Uninstalls a scheduled task on the current computer.





SYNTAX

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





DESCRIPTION

The `Uninstall-CScheduledTask` function uses `schtasks.exe` to uninstall a scheduled task on the current computer.

If the task doesn't exist, nothing happens.





PARAMETERS

-Name <String>

The name of the scheduled task to uninstall.



Required? true

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



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



PS C:\\>Uninstall-CScheduledTask -Name 'doc'



Demonstrates how to delete a scheduled task named `doc`.









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Uninstall-CScheduledTask -Name 'doc' -Force



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











RELATED LINKS

Get-CScheduledTask

Test-CScheduledTask

Install-CScheduledTask