4.5
Table Of Contents
- VMware View Integration Guide
- Contents
- Introduction
- Integrating with the Event Database
- Using View PowerCLI
- Introduction to View PowerCLI
- View PowerCLI Cmdlets
- View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations
- View PowerCLI Cmdlet Parameters
- Examples of Using View PowerCLI Cmdlets
- Displaying Information About a View Connection Server Instance
- Updating the Configuration of a View Connection Server Instance
- Managing the Configuration of vCenter Servers in VMware View
- Managing Desktop Pools
- Creating and Updating Automatically Provisioned Desktop Pools
- Creating and Updating Linked-Clone Desktop Pools
- Creating and Updating Manually Provisioned Desktop Pools
- Creating Manual Unmanaged Desktop Pools
- Creating and Updating Desktops Provisioned by Terminal Servers
- Obtaining Information About Users and Groups from Active Directory
- Managing Desktop Entitlements
- Managing Local Desktops
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Computers
- Updating the Ownership of Machines
- Displaying Information About Events
- Managing the Global Configuration of VMware View
- Managing View Licenses
- Customizing LDAP Data
- Integrating with SCOM
- View Management Packs
- Name a View Connection Server Group
- Import the View MPs
- View Discovery Script
- Run the Discovery Script
- Display Discovered Objects
- Display Managed Objects
- Views and Monitors
- Enable a Proxy Agent on a Server
- Display Performance Data
- Display Information About an Alert
- Restart a Service
- Exclude a Domain from Connectivity Monitoring
- Close Alerts
- Class and Relationship Definitions
- Index
VMware, Inc. 39
Chapter 3 Using View PowerCLI
Examples of Using View PowerCLI Cmdlets
TheViewPowerCLIcmdletsallowyoutoperformViewoperationsfromthecommandlineorfromscripts
insteadofusingViewAdministrator.Thefollowingsectionscontainexamplesthatyoucanadaptandapply
toyourownsystems.
Displaying Information About a View Connection Server Instance
DisplaytheconfigurationsettingsofaViewConnectionServerinstance.
Get-ConnectionBroker -displayName connsvr1
Updating the Configuration of a View Connection Server Instance
UpdatethesettingsfordirectconnectionsandsecureIDonaViewConnectionServerinstance.
Update-ConnectionBroker -displayName connsvr1 -directConnect $false -secureIdEnabled $true
-ldapBackupFrequency EveryWeek
Managing the Configuration of vCenter Servers in VMware View
AddanentryforavCenterServertotheViewconfiguration.
Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw
-displayName "VC-01" -createRampFactor 5 -deleteRampFactor 5
ReturninformationaboutavCenterServer.
Get-ViewVC -serverName vc01.mydom.int
ReturninformationaboutallvCenterServersinaspecifiedDNSdomain.
Get-ViewVC -serverName *.mycorp.com
ChangethevaluesoftherampfactorsforthevCenterServerthatisconfiguredonserversvr11.
Get-ViewVC -serverName svr11.mycorp.com | Update-ViewVC -createRampFactor 5 -deleteRampFactor 10
ChangethevalueofthecreaterampfactorforthevCenterServersthatareconfiguredintheDNSdomain
mycorp.com.
Get-ViewVC -serverName *.mycorp.com | Update-ViewVC -createRampFactor 5
RemoveanentryforavCenterServerfromtheconfiguration.
Get-ViewVC -serverName vc02.mydom.int | Remove-ViewVC
Managing Desktop Pools
Returninformationaboutthedesktoppoolmypool.
Get-Pool -poolDisplayName mypool
Returninformationaboutalldesktoppoolswiththeprefixmypool‐.
Get-Pool -pool_id mypool-*
ReturninformationaboutalldesktoppoolsthatareconfiguredtousethePCoIPprotocol.
Get-Pool -protocol PCOIP
Returninformationaboutallindividualunmanageddesktoppools.
Get-Pool -poolType IndividualUnmanaged
Removethedesktoppooldtpool‐10.
Remove-Pool -pool_id dtpool-10
Removethedesktoppooldtpool‐12,terminatinganyactivesession,butwithoutdeletingtheimagefromdisk.
Remove-Pool -pool_id dtpool-12 -TerminateSession $true -DeleteFromDisk $false