6.2

Table Of Contents
View Integration
44 VMware, Inc.
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
If you want to remove all entitlements from the system, specify the -forceRemove parameter set to $true .
Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove $true
If you do not specify the-forceRemove parameter, you can use the command to find out information about
the entitlements that would be removed.
Managing Remote Sessions
Return the list of active remote sessions for the user fred in the domain mydom.
Get-RemoteSession -username mydom\fred
Disconnect the active remote sessions on which the user fred is logged in.
Get-RemoteSession -username mydom\fred | Send-SessionDisconnect
Log out the active remote sessions on which the user fred is logged in.
Get-RemoteSession -username mydom\fred | Send-SessionLogoff
Log out the active remote sessions that are using the RDP protocol.
Get-RemoteSession -protocol RDP | Send-SessionLogoff
Managing Virtual Machines
Return information about the virtual machine for the desktop pool dtpool-3.
Get-DesktopVM -pool_id dtpool-3
Return information about the virtual machines that are configured on the vCenter Server vc03.local.int.
Get-DesktopVM -vc_id (Get-ViewVC -serverName vc03.local.int).vc_id
Return information about the virtual machines that are managed by the same vCenter Server that provisions
the desktop pool dtpool-1.
Get-ViewVC -pool_id dtpool-1 | Get-DesktopVM
Return information about all virtual machines that are managed by the vCenter Server that is configured on
the server vc01.mydom.int.
Get-ViewVC -serverName vc01.mydom.int | Get-DesktopVM
NOTE View Agent must be running on the virtual machines.