Integration

Table Of Contents
View Integration
44 VMware, Inc.
Create the manually provisioned desktop pool man1 from the desktops listed by the vCenter Server
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-DesktopVM -poolType Manual | Add-ManualPool -pool_id
man1 -isUserResetAllowed $false
Update the configuration of the manually provisioned desktop pool man1.
Update-ManualPool -pool_id man1 -displayName "Manual Desktop 1" -isUserResetAllowed $true
Creating Manual Unmanaged Desktop Pools
Create the unmanaged desktop pool unman1 that contains the physical machines pm01 and pm02.
Add-ManualUnmanagedPool -pool_id unman1 -pm_id_list pm01;pm02 -isUserResetAllowed $true
Update the configuration of the unmanaged desktop pool unman1.
Update-ManualUnmanagedPool -pool_id unman1 -displayName "Unmanaged Desktop 1"
-isUserResetAllowed $false
Creating and Updating Desktops Provisioned by RDS Hosts
Return information about an RDS host (formerly called a terminal server).
Get-TerminalServer -hostname tsvr01
Add the desktop pool tsd1 using a machine that is provided by the RDS host at a specified IP address.
Get-TerminalServer -hostname tsvr01 | Add-TerminalServerPool -pool_id tsd1 -displayName "Terminal
Server Desktop 1" -allowProtocolOverride $true
Update the configuration of the desktop pool tsd1, which uses a machine provided by an RDS host.
Get-TerminalServer -hostname tsvr01 | Update-TerminalServerPool -pool_id tsd1 -displayName
"Terminal Server Desktop 1" -allowProtocolOverride $false -autoLogoffTime 1
Obtaining Information About Users and Groups from Active Directory
Return information about users in the domain mydom.
Get-User -domain "mydom"
Return information about the user fred in the domain mydom and exclude any information about the users
group.
Get-User -name "fred" -domain "mydom" -includeGroup $false
Managing Desktop Entitlements
Add an entitlement for the user fred in the domain mydom to use desktop pool dtop-12.
Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12
Add an entitlement to all desktop pools for the user usr1.
Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid
Return information about all entitlements to desktop pools.
Get-PoolEntitlement
Return information about the users who are entitled to use desktop pool dtop-1.
Get-PoolEntitlement -pool_id dtop-1
Return information about the users who are entitled to use desktop pools whose IDs start with dtpool-.
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Remove the entitlement to use desktop pool dtpool-11.
Get-PoolEntitlement -pool_id dtpool-11 | Remove-PoolEntitlement