Integration

Table Of Contents
VMware, Inc. 45
Chapter 3 Using View PowerCLI
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
Return a list of active persistent user data disks for the virtual machine vm01.
Get-ProfileDisk -VMname vm01
Reset the virtual machines for the desktop pool dtpool-05.
Get-Pool -pool_id dtpool-05 | Get-DesktopVM | Send-VMReset
Reset the virtual machine for the desktop pool with the display name dtp1.
Get-Pool -displayName dtp1 | Get-DesktopVM | Send-VMReset
Displaying Information About Physical Computers
Return information about the computer at a specified IP address.
Get-DesktopPhysicalMachine -hostname myhost01
NOTE View Agent must be running on the virtual machines.
NOTE View Agent must be running on the computers.