4.5

Table Of Contents
VMware View Integration Guide
42 VMware, Inc.
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
ReturninformationaboutthelocaldesktopforthespecifiedIPaddress.
Get-LocalSession -hostIP 10.20.54.65
ReturninformationaboutthelocaldesktopsforarangeofIPaddresses.
Get-LocalSession -hostIP 10.20.222.*
RollbackthelocaldesktopwithaspecifiedhostIPaddress.
Get-LocalSession -host_ip 10.20.54.36 | Send-LocalSessionRollback
RollbackthelocaldesktopsforarangeofhostIPaddresses.
Get-LocalSession -hostIP 10.20.222.* | Send-LocalSessionRollback
RollbackthelocaldesktopwiththevirtualmachineIDvmcn11.
Send-LocalSessionRollback -machine_id vmcn11
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.
Get-DesktopVM -vc_id vc03
ReturninformationaboutthevirtualmachinesthataremanagedbythesamevCenterServerthatprovisions
thedesktoppooldtpool1.
Get-ViewVC -pool_id dtpool-1 | Get-DesktopVM
NOTEViewAgentmustberunningonthevirtualmachines.