Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By : Jason Ventresco
Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook

By: Jason Ventresco

Overview of this book

Table of Contents (18 chapters)
VMware Horizon View 6 Desktop Virtualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
4
Managing VMware Horizon View with PowerCLI
Index

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...