Retrieving a list of virtual machines managed by Horizon View
The
Get-DesktopVM
PowerCLI command can be used to return a list of the virtual desktops that meet the specified criteria.
How to do it…
The following example command retrieves a list of desktops that currently have a refresh operation scheduled:
Get-DesktopVM -ComposerTask refresh
Omit the options in order to retrieve a list of all virtual machines.
How it works…
The Get-DesktopVM
command supports multiple options that enable you to return desktops based on very specific criteria. The criteria include the following:
The
ComposerTask
option: This retrieves desktops with the specified scheduled composer tasks. The options areattachUdd
,detachUdd
,mkChkPoint
,rebalance
,refresh
,replaceUdd
, andresync
. TheUdd
term stands for user data disk.Note
A full description of each of these options is available in the VMware document View Integration (https://pubs.vmware.com/horizon-view-60/topic/com.vmware.view.integration.doc/view_integration_powershell...