4.6
Table Of Contents
- VMware View Integration
- 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
- Examples of Using View PowerCLI for Enhanced Functionality
- 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 View Integration
40 VMware, Inc.
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
Removeadesktoppoolspecifiedbyitsdisplayname,anddeleteitsimagefromdisk.
Get-Pool -displayName "My Pool 1" | Remove-Pool -DeleteFromDisk $true
Creating and Updating Automatically Provisioned Desktop Pools
Addtheautomaticallyprovisioneddesktoppoolauto1,whichismanagedbythevCenterServer
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Add-AutomaticPool -pool_id auto1 -displayName "ADP1"
-namePrefix "adp1-{n:fixed=4}" -vmFolderPath /AutoConfig/vm
-resourcePoolPath /AutoConfig/host/Resources -templatePath /AutoConfig/vm/ADP_template
-dataStorePaths /host/datastore_1/lun10 -customizationSpecName "Windows 7 Variation 3"
-minimumCount 4 -maximumCount 10
Updatetheconfigurationoftheautomaticallyprovisioneddesktoppoolauto1.
Update-AutomaticPool -pool_id auto1 -displayName "Automatic Desktop Pool 1"
-isProvisioningEnabled $false -dataStorePaths /host/datastore_1/lun10;/host/datastore_1/lun12
Thedatastoresthatyouspecifyasargumentsto-datastorePathsoverridetheprevioussetting.Youmust
specifytheexistingdatastorestoretainthemforusebythepool.
Creating and Updating Linked-Clone Desktop Pools
Addthelinked‐clonedesktoppoollcdpool_1,whichismanagedbyViewComposeronthevCenterServer
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Add-AutomaticLinkedCLonePool -pool_id lcdpool_1 -displayName "LCD Pool 1"
-namePrefix "lcp1-{n}-dt" -parentVMPath /AutoPoolVMs/parent
-parentSnapshotPath /AutoPoolSnapshots/parent1_snapshot -vmFolderPath /AutoConfig/VM_folder
-resourcePoolPath /AutoConfig/host/Resources
-datastoreSpecs [Aggressive,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16
-dataDiskLetter "D" -dataDiskSize 100 -minimumCount 4 -maximumCount 10
Ifyouspecifyapersistentdatadisk,useanuppercaseletterforthedrive.Donotusealetterthatalreadyexists
ontheparentvirtualmachineforadrivesuchasA,B,orC,orthatconflictswithanetwork‐mounteddrive.
Updatetheconfigurationofthelinked‐clone
desktoppoollcdpool_1.
Get-ViewVC -serverName vc.mydom.int | Get-ComposerDomain -domain VCDOM |
Update-AutomaticLinkedCLonePool -pool_id lcdpool_1 -datastoreSpecs
[Conservative,os,data]/host/datastore_1/lun04;/host/datastore_2/lun16;/host/datastore_2/lun22
-minimumCount 4 -maximumCount 20 -headroomCount 2 -powerPolicy Suspend -defaultProtocol PCOIP
-isUserResetAllowed $true
Thedatastoresthatyouspecifyasargumentsto-datastoreSpecsoverridetheprevioussetting.Youmust
specifytheexistingdatastorestoretainthemforusebythepool.
Rebalancedesktopsinthelinked‐clonedesktoppoollcdpool_2amongtheavailabledatastores.
N
OTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.
NOTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.