< Back

Get-ClusteredScheduledTask

Wed Jan 30, 2019 5:59 pm

NAME Get-ClusteredScheduledTask



SYNOPSIS

Gets clustered scheduled tasks for a failover cluster.





SYNTAX

Get-ClusteredScheduledTask [[-TaskName] <String>] [[-Cluster] <String>] [[-TaskType] {ResourceSpecific | AnyNode | ClusterWide}] [-CimSession

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





DESCRIPTION

The Get-ClusteredScheduledTask cmdlet gets the clustered scheduled tasks registered on a failover cluster. You can specify task name or task type.



For more information about the Windows Server???? 2012 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? false

Position? 1

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-TaskType [<ClusterTaskTypeEnum>]

Specifies a type for the task. The acceptable values for this parameter are:



-- ResourceSpecific. Resource specific cluster nodes.

-- AnyNode. Active cluster nodes.

-- ClusterWide. All cluster nodes.



Required? false

Position? 3

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

Microsoft.Management.Infrastructure.CimInstance#MSFT_ClusteredScheduledTask[]







Example 1: Get scheduled tasks



PS C:\\> Get-ClusteredScheduledTask -TaskName "Task14" -Cluster "Cluster73"



This command gets the task named Task14 on the cluster named Cluster73.







RELATED LINKS

Online Version:

Register-ClusteredScheduledTask

Set-ClusteredScheduledTask

Unregister-ClusteredScheduledTask