4.6

Table Of Contents
VMware View Integration
40 VMware, Inc.
Returninformationaboutallindividualunmanageddesktoppools.
Get-Pool -poolType IndividualUnmanaged
Removethedesktoppooldtpool10.
Remove-Pool -pool_id dtpool-10
Removethedesktoppooldtpool12,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
Addthelinkedclonedesktoppoollcdpool_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,orthatconflictswithanetworkmounteddrive.
Updatetheconfigurationofthelinkedclone
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.
Rebalancedesktopsinthelinkedclonedesktoppoollcdpool_2amongtheavailabledatastores.
N
OTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.
NOTEToprovisionallthedesktopsinadvanceoftheiruse,set-minimumCountand-maximumCounttothe
samevalue.