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 -displayName 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 -displayName connsvr1 -directConnect $false -secureIdEnabled $true
-ldapBackupFrequency EveryWeek
Managing the Configuration of vCenter Servers in VMware View
Add an entry for a vCenter Server to the View configuration.
Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw
-displayName "VC-01" -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 mypool.
Get-Pool -poolDisplayName mypool
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
Return information about all individual unmanaged desktop pools.
Get-Pool -poolType IndividualUnmanaged
Remove the desktop pool dtpool‐10.
Remove-Pool -pool_id dtpool-10
Remove the desktop pool dtpool‐12, terminating any active session, but without deleting the image from disk.
Remove-Pool -pool_id dtpool-12 -TerminateSession $true -DeleteFromDisk $false
VMware, Inc.
Chapter 3 Using View PowerCLI
39