Retrieving a list of physical machines
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.
How to do it…
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.
How it works…
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
Sid
option: This is the Windows machine SID.The
State
option: This is the machine state. The options include...