< Back

Unregister-ClusteredScheduledTask

Wed Jan 30, 2019 6:00 pm

NAME Unregister-ClusteredScheduledTask



SYNOPSIS

Removes a scheduled task from a failover cluster.





SYNTAX

Unregister-ClusteredScheduledTask [-TaskName] <String> [[-Cluster] <String>] [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]



Unregister-ClusteredScheduledTask [-CimSession <CimSession[]>] [-ThrottleLimit <Int32>] [<CommonParameters>]





DESCRIPTION

The Unregister-ClusteredScheduledTask cmdlet removes a clustered scheduled task from all nodes of a failover cluster.



For more information about the Task Scheduler, see the Task Scheduler Overview topic in the TechNet Library at

http://technet.microsoft.com/en-us/libr ... 21871.aspx.





PARAMETERS

-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or

Get-CimSession cmdlet. The default is the current session on the local computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-Cluster [<String>]

Specifies the name of a failover cluster. If you do not specify a cluster, the cmdlet uses the current node cluster name.



Required? false

Position? 2

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-TaskName <String>

Specifies a name of a scheduled task.



Required? true

Position? 1

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0 is

entered, then Windows PowerShell???? calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the

computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

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: Unregister a task



PS C:\\> Unregister-ClusteredScheduledTask -TaskName "Task01" -Cluster "Cluster07"



This command removes the task named Task01 from the cluster named Cluster07.







RELATED LINKS

Online Version:

Get-ClusteredScheduledTask

Register-ClusteredScheduledTask

Set-ClusteredScheduledTask