Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook - Second Edition

By : Ventresco
Book Image

VMware Horizon View 6 Desktop Virtualization Cookbook - Second Edition

By: Ventresco

Overview of this book

If you want a more detailed explanation concerning the implementation of several different core features of VMware Horizon View, this is the book for you. Whether you are new to VMware Horizon View or an existing user, this book will provide you with the knowledge you need to successfully deploy several core features and get introduced to the latest features of version 6.0 as well.
Table of Contents (13 chapters)
4
4. Managing VMware Horizon View with PowerCLI
12
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...