Invoke-RASHostPool
SYNOPSIS
Perform RAS Host Pool commands.
SYNTAX
Invoke-RASHostPool [-Id] <uint> -Command {RecreateHosts | CreateHosts}
-ObjType {RDSHostPool | VDIHostPool | AVDHostPool} [-NoOfHostsToCreate <uint>] [<CommonParameters>]Invoke-RASHostPool [-InputObject] <RASListObj> -Command {RecreateHosts | CreateHosts}
[-NoOfHostsToCreate <uint>] [<CommonParameters>]Invoke-RASHostPool [-Name] <string> [[-SiteId] <uint>] -Command {RecreateHosts | CreateHosts}
-ObjType {RDSHostPool | VDIHostPool | AVDHostPool} [-NoOfHostsToCreate <uint>] [<CommonParameters>]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.
EXAMPLES
Example 1
Add new desktop VMs to the RAS HostPool specified by ID.
If -NoOfHostsToCreate is not specified, 1 desktop VM will be added.
Example 2
Re-create all desktop VMs of the RAS HostPool specified by the $HostPool object.
PARAMETERS
-Name
The name of the target RAS HostPool.
-SiteId
Site ID of the specified RAS HostPool.
If the parameter is omitted, the site ID of the Licensing Server will be used.
-Id
The ID of the target RAS HostPool.
-InputObject
An object of type RDS, VDI, or AVD HostPool representing a RAS HostPool.
Type reference: RASListObj
-ObjType
HostPool object type.
Possible values: RDSHostPool, VDIHostPool, AVDHostPool
Type reference: HostPoolObjType
-Command
Host Pool command.
Accepted values: RecreateHosts, CreateHosts.
Possible values: RecreateHosts, CreateHosts
Type reference: HostPoolCmd
-NoOfHostsToCreate
The number of hosts to be created from the specified RAS HostPool. Default: 1.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
RASListObj
OUTPUTS
None
RELATED LINKS
Last updated