The
Get-DesktopPhysicalMachine PowerCLI
command can be used to return a list of physical desktops managed by Horizon View and that meet the specified criteria.
The following example command retrieves a list of all desktops running the Windows 7 OS:
Get-DesktopPhysicalMachine -OS Win7
Omit the options to retrieve a list of all physical machines.
Get-DesktopPhysicalMachine
supports multiple options that enable you to retrieve physical desktops based on very specific criteria. The criteria include the following:
The
Description
option: This is the description of the physical machine. This value should be contained within quotes.The
DisplayName
option: This is the display name of the physical machine. This value should be contained within quotes.The
Hostname
option: This is the DNS name of the target physical desktop.The
State
option: This is the machine state. The options include...