Invoke-RASRDSHostPoolCmd

NAME

Invoke-RASRDSHostPoolCmd

SYNOPSIS

Sends a command to the RD Session Host Pool.

SYNTAX

Invoke-RASRDSHostPoolCmd [-Idarrow-up-right] <uint> -Commandarrow-up-right {CancelSchedule | CancelDisabledState | CancelPendingReboot | CancelPendingShutdown} [<CommonParametersarrow-up-right>] Invoke-RASRDSHostPoolCmd [-InputObjectarrow-up-right] <RDSHostPoolarrow-up-right> -Commandarrow-up-right {CancelSchedule | CancelDisabledState | CancelPendingReboot | CancelPendingShutdown} [<CommonParametersarrow-up-right>] Invoke-RASRDSHostPoolCmd [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -Commandarrow-up-right {CancelSchedule | CancelDisabledState | CancelPendingReboot | CancelPendingShutdown} [<CommonParametersarrow-up-right>]

DESCRIPTION

Sends a command to the RD Session Host Pool. It will only fail with an error if the name or ID of the RD Session Host Pool is invalid.

PARAMETERS

-Name <string> The name of RDS Group.

        Required?                    true
        Position?                    0
        Default value                
        Accept pipeline input?       false
        Accept wildcard characters?  false

-SiteId <uint> Site ID. If the parameter is omitted, the Licensing Server site ID will be used.

-Id <uint> The ID of a RDS Group. To obtain the ID, use the Get-RASRDSHostPool cmdlet.

-InputObject <RDSHostPoolarrow-up-right> The RDSHostPool Object. To obtain a RDSHostPool object use the Get-RASRDSHostPool command."

-Command <RDSHostPoolarrow-up-right> Session command. Possible values: CancelSchedule, CancelDisabledState, CancelPendingReboot, CancelPendingShutdown

<CommonParameters>

INPUTS

RDSHostPoolarrow-up-right

OUTPUTS

-none-

EXAMPLES

---------- EXAMPLE 1 ---------- Invoke-RASRDSHostPoolCmd -Id 2536 -Command CancelSchedule Cancels the Schedules in the RD Session Host Pool. ---------- EXAMPLE 2 ---------- $RDPSessionApp | Invoke-RASRDSHostPoolCmd -Command CancelDisabledState The disabled state set by the RAS Scheduler is cancelled.

Last updated