Invoke-RASHostPool

NAME

Invoke-RASHostPool

SYNOPSIS

Perform RAS Host Pool commands.

SYNTAX

Invoke-RASHostPool [-Idarrow-up-right] <uint> -Commandarrow-up-right {RecreateHosts | CreateHosts} -ObjTypearrow-up-right {RDSHostPool | VDIHostPool | AVDHostPool} [-NoOfHostsToCreatearrow-up-right <uint>] [<CommonParametersarrow-up-right>] Invoke-RASHostPool [-InputObjectarrow-up-right] <RASListObjarrow-up-right> -Commandarrow-up-right {RecreateHosts | CreateHosts} [-NoOfHostsToCreatearrow-up-right <uint>] [<CommonParametersarrow-up-right>] Invoke-RASHostPool [-Namearrow-up-right] <string> [[-SiteIdarrow-up-right] <uint>] -Commandarrow-up-right {RecreateHosts | CreateHosts} -ObjTypearrow-up-right {RDSHostPool | VDIHostPool | AVDHostPool} [-NoOfHostsToCreatearrow-up-right <uint>] [<CommonParametersarrow-up-right>]

DESCRIPTION

Triggers an action on the selected HostPool such as: CreateHosts or RecreateHosts. CreateHosts: Creates one or more Hosts. RecreateHosts: Re-creates all of the Hosts.

PARAMETERS

-Name <string> The name of the target RAS HostPool.

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

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

-Id <uint> The ID of the target RAS HostPool.

-InputObject <RASListObjarrow-up-right> An object of type RDS, VDI, or AVD HostPool representing a RAS HostPool.

-ObjType <HostPoolObjTypearrow-up-right> HostPool object type. Possible values: RDSHostPool, VDIHostPool, AVDHostPool

-Command <HostPoolCmdarrow-up-right> Host Pool command. Accepted values: RecreateHosts, CreateHosts. Possible values: RecreateHosts, CreateHosts

-NoOfHostsToCreate <uint> The number of hosts to be created from the specified RAS HostPool. Default: 1.

<CommonParameters>

INPUTS

RASListObjarrow-up-right

OUTPUTS

-none-

EXAMPLES

---------- EXAMPLE 1 ---------- Invoke-RASHostPool -Id 10 -ObjType RDSHostPool -Command CreateHosts -NoOfHostsToCreate 2 Add new desktop VMs to the RAS HostPool specified by ID. If -NoOfHostsToCreate is not specified, 1 desktop VM will be added. ---------- EXAMPLE 2 ---------- Invoke-RASHostPool -InputObject $HostPool -Command RecreateHosts Re-create all desktop VMs of the RAS HostPool specified by the $HostPool object.

Last updated