7.0

Table Of Contents
Creating and Updating Manually Provisioned Desktop Pools
You can use the Add-ManualPool, Get-ViewVC, and Update-ManualPool cmdlets to create and update manually
provisioned desktop pools.
In the following example, the Add-ManualPool cmdlet creates a manually provisioned desktop pool named
manPool that contains a virtual machine named myVM.
Add-ManualPool -pool_id manPool -id (Get-VM -name "myVM").id -isUserResetAllowed $true
In the following example, the Get-ViewVC cmdlet creates a manually provisioned desktop pool named man1
from the desktops managed by the vCenter Server instance named vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-DesktopVM -poolType Manual | Add-ManualPool -pool_id
man1 -isUserResetAllowed $false
In the following example, the Update-ManualPool cmdlet updates the configuration of a manually
provisioned desktop pool named man1.
Update-ManualPool -pool_id man1 -displayName "Manual Desktop 1" -isUserResetAllowed $true
NOTE To use the Get-VM cmdlet, you must install vSphere PowerCLI.
Creating and Updating Manual Unmanaged Desktop Pools
You can use the Add-ManualUnmanagedPool and Update-ManualUnmanagedPool cmdlets to create and update
manual unmanaged desktop pools.
In the following example, the Add-ManualUnmanagedPool cmdlet creates an unmanaged desktop pool named
unman1 that contains physical machines named pm01 and pm02.
Add-ManualUnmanagedPool -pool_id unman1 -pm_id_list pm01;pm02 -isUserResetAllowed $true
In the following example, the Update-ManualUnmanagedPool cmdlet updates the configuration of an
unmanaged desktop pool named unman1.
Update-ManualUnmanagedPool -pool_id unman1 -displayName "Unmanaged Desktop 1"
-isUserResetAllowed $false
Displaying Information About Users and Groups
You can use the Get-User cmdlet to display information about Active Directory users and groups.
In the following example, the Get-User cmdlet displays information about all the users in a domain named
mydom.
Get-User -domain "mydom"
In the following example, the Get-User cmdlet displays information about a user named fred in the domain
named mydom. It excludes information about the user's group.
Get-User -name "fred" -domain "mydom" -includeGroup $false
Chapter 3 Using View PowerCLI
VMware, Inc. 43