4.6

Table Of Contents
VMware View Integration
42 VMware, Inc.
Managing Desktop Entitlements
Addanentitlementfortheuserfredinthedomainmydomtousedesktoppooldtop12.
Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12
Addanentitlementtoalldesktoppoolsfortheuserusr1.
Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid
Returninformationaboutallentitlementstodesktoppools.
Get-PoolEntitlement
Returninformationabouttheuserswhoareentitledtousedesktoppooldtop1.
Get-PoolEntitlement -pool_id dtop-1
ReturninformationabouttheuserswhoareentitledtousedesktoppoolswhoseIDsstartwithdtpool.
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Removetheentitlementtousedesktoppooldtpool11.
Get-PoolEntitlement -pool_id dtpool-11 | Remove-PoolEntitlement
Ifyouwanttoremoveallentitlementsfromthesystem,specifythe-forceRemoveparametersetto$true.
Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove $true
Ifyoudonot specifythe-forceRemoveparameter,youcanusethecommandtofindoutinformationabout
theentitlementsthatwouldberemoved.
Managing Local Desktops
Returninformationaboutthelocaldesktopvmcn11.
Get-LocalSession -machine_id (Get-DesktopVM -Name "vmcn11").machine_id
Rollbackthelocaldesktop.
Send-LocalSessionRollback -machine_id (Get-DesktopVM -Name "vmcn11").machine_id
Managing Remote Sessions
Returnthelistofactiveremotesessionsfortheuserfredinthedomainmydom.
Get-RemoteSession -username mydom\fred
Disconnecttheactiveremotesessionsonwhichtheuserfredisloggedin.
Get-RemoteSession -username mydom\fred | Send-SessionDisconnect
Logouttheactiveremotesessionsonwhichtheuserfredisloggedin.
Get-RemoteSession -username mydom\fred | Send-SessionLogoff -session_id
LogouttheactiveremotesessionsthatareusingtheRDPprotocol.
Get-RemoteSession -protocol RDP | Send-SessionLogoff
Managing Virtual Machines
Returninformationaboutthevirtualmachineforthedesktoppooldtpool3.
Get-DesktopVM -pool_id dtpool-3
ReturninformationaboutthevirtualmachinesthatareconfiguredonthevCenterServervc03.local.int.
Get-DesktopVM -vc_id (Get-ViewVC -serverName vc03.local.int).vc_id
NOTEViewAgentmustberunningonthevirtualmachines.