5.2

Table Of Contents
VMware Horizon View Integration
42 VMware, Inc.
Examples of Using View PowerCLI Cmdlets
The View PowerCLI cmdlets allow you to perform View operations from the command line or from scripts
instead of using View Administrator. The following sections contain examples that you can adapt and apply
to your own systems.
Displaying Information About a View Connection Server Instance
Display the configuration settings of a View Connection Server instance.
Get-ConnectionBroker -broker_id CONNSVR1
Updating the Configuration of a View Connection Server Instance
Update the settings for direct connections and secureID on a View Connection Server instance.
Update-ConnectionBroker -broker_id CONNSVR1 -directConnect $false -secureIdEnabled $true
-ldapBackupFrequency EveryWeek
Configure a View Connection Server for secure PCoIP connections.
Update-ConnectionBroker -broker_id CS-VSG -directPCoIP $FALSE
Set the PCoIP external URL for a View Connection Server.
Update-ConnectionBroker -broker_id CS-VSG -externalPCoIPURL 10.18.133.34:4172
Set the PCoIP external URL for a security server.
Update-ConnectionBroker -broker_id SECSVR-03 -externalPCoIPURL 10.116.32.136:4172
Managing the Configuration of vCenter Servers in View
Add an entry for a vCenter Server to the View configuration.
Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw
-createRampFactor 5 -deleteRampFactor 5
Return information about a vCenter Server.
Get-ViewVC -serverName vc01.mydom.int
Return information about all vCenter Servers in a specified DNS domain.
Get-ViewVC -serverName *.mycorp.com
Change the values of the ramp factors for the vCenter Server that is configured on server svr11.
Get-ViewVC -serverName svr11.mycorp.com | Update-ViewVC -createRampFactor 5 -deleteRampFactor 10
Change the value of the create ramp factor for the vCenter Servers that are configured in the DNS domain
mycorp.com.
Get-ViewVC -serverName *.mycorp.com | Update-ViewVC -createRampFactor 5
Remove an entry for a vCenter Server from the configuration.
Get-ViewVC -serverName vc02.mydom.int | Remove-ViewVC
Managing Desktop Pools
Return information about the desktop pool with a specified display name.
Get-Pool -displayName "My Pool 1"
Return information about all desktop pools with the prefix mypool-.
Get-Pool -pool_id mypool-*
Return information about all desktop pools that are configured to use the PCoIP protocol.
Get-Pool -protocol PCOIP