For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

RDS Template Example

#Establish a connection with Parallels RAS (NB. User will be prompted for Username and Password).

New-RASSession

###### VDI CONFIGURATION ######

#Add a Provider.

$Provider = New-RASProvider -VMwareESXi -VmwareESXiVersion v6_5 -Server "vdi.company.dom" -ProviderUsername root -ProviderPassword $AdminPassword -VDIAgent "vdiagent.company.dom" -Username $AdminUsername -Password $AdminPassword

#Apply settings, for the Connection Broker to connect with the new VDI Host.

Invoke-RASApply

#Get the list of Virtual Machines through the RAS Provider Agent

Get-RASVM -ProviderId $Provider.Id

Name                 State    ID                                       Host ID  Site ID
----                 -----    --                                       -------  -------
WinSrv-2012R2        On       564d5e6f-3fad-bcf9-7c6b-bac9f212713d     1        1

#Convert the VM to an RDS Template

$rdsTemplate = New-RASTemplate -ObjType RDSTemplate -ProviderId $Provider.Id -VMId "564d5e6f-3fad-bcf9-7c6b-bac9f212713d" -Name "Win10template" -ImagePrepTool RASPrep -OwnerName "Owner" -Administrator $AdminUsername -AdminPassword $AdminPassword -Organization "Parallels" -Domain "company.dom" -DomainPassword $AdminPassword -CloneMethod LinkedClone -DomainOrgUnit "OU=VDI,DC=dom,DC=company" -ComputerName "10.0.0.51"

#Get Template Version

$rdsTemplateVersion = Get-RASTemplateVersion -TemplateId $rdsTemplate.Id -ObjType RDSTemplateVersion

#Apply settings, to finalize RDS Template (and create any clones if required).

Invoke-RASApply

###### RDS HOST POOL CONFIGURATION ######

#Create an RD Session Host pool and add RDS Template object to it.

New-RASRDSHostPool -Name "My RDS Host Pool" -Description "RDSTemplates Pool" -RASTemplate $rdsTemplate -RASTemplateVersionId $rdsTemplateVersion.Id -WorkLoadThreshold 50 -ServersToAddPerRequest 2 -WorkLoadToDrain 20 -HostsToCreate 1 -HostName "Win10-%ID:3%" -MinServersFromTemplate 2 -MaxServersFromTemplate 2 -Autoscale $true

#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console.

Invoke-RASApply

#End the current RAS session.

Remove-RASSession

© 2026 Parallels International GmbH. Parallels and the Parallels logo are trademarks or registered trademarks of Parallels International GmbH in Canada, the U.S., and/or elsewhere.

Last updated