#Establish a connection with Parallels RAS (Replace Administrator with your RAS root account). New-RASSession Administrator###### RDS status info #######Adding a RAS RDS New-RASRDS-Server "rds.company.dom"-Username administrator#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-RASApply# Get RDS status info Get-RASRDSStatus-Server rds.company.domID Site ID Server CPU Load Memory Load Agent State --------------------------------------------------11 rds.company.dom 815 OK ###### Gateway status info #######Adding a RAS Gateway New-RASGateway-Server "gw.company.dom"-Username administrator#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-RASApply# Get Gateway status info Get-RASGatewayStatus-Server gw.company.domID Site ID Server CPU Load Memory Load Agent State --------------------------------------------------11 gw.company.dom 1347 OK ###### Connection Broker status info #######Adding a RAS Connection Broker New-RASBroker-Server "broker.company.dom"-Username administrator#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-RASApply# Get Connection Broker status info Get-RASBrokerStatus-Server broker.company.domID Site ID Server CPU Load Memory Load Agent State --------------------------------------------------11 broker.company.dom 246 OK ###### Site status info #######Adding a RAS Site New-RASSite-Server "site.company.dom"-Name "MySite"-Username administrator#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-RASApply# Get Site status info Get-RASSiteStatus-Server site.company.domID Site ID Server CPU Load Memory Load Agent State --------------------------------------------------11 site.company.dom 00 OK ###### Provider status info #######Add a Provider servers. $Provider = New-RASProvider -Server "vdi.company.dom" -VMwareESXi -VmwareESXiVersion v6_5 -VDIUsername root -VDIAgent "vdiagent.company.do" -Username root
#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. Invoke-RASApply# Get Provider status info Get-RASProviderStatus-Id $Provider.IdID Site ID Server CPU Load Memory Load Agent State --------------------------------------------------11 vdi.company.dom 1860 OK #End the current RAS session.Remove-RASSession