Invoke-RASHostPool
Last updated
Last updated
Invoke-RASHostPool
Perform RAS Host Pool commands.
Invoke-RASHostPool [] (uint)** - {RecreateHosts | CreateHosts} - {RDSHostPool | VDIHostPool | AVDHostPool} [ (uint)] [()]
Invoke-RASHostPool [-] () - {RecreateHosts | CreateHosts} [ (uint)] [()]
Invoke-RASHostPool []** (string) [[-] (uint)] - {RecreateHosts | CreateHosts} - {RDSHostPool | VDIHostPool | AVDHostPool} [ (uint)] [()]
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.
The name of the target RAS HostPool.
Site ID of the specified RAS HostPool.
If the parameter is omitted, the site ID of the Licensing Server will be used.
The ID of the target RAS HostPool.
An object of type RDS, VDI, or AVD HostPool representing a RAS HostPool.
HostPool object type.
Possible values: RDSHostPool, VDIHostPool, AVDHostPool
Host Pool command.
Accepted values: RecreateHosts, CreateHosts.
Possible values: RecreateHosts, CreateHosts
The number of hosts to be created from the specified RAS HostPool. Default: 1.
(CommonParameters)
-none-
**---------- 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.