Viewing all the PowerCLI commands and their options

In this section, we will review all of the current VMware Horizon PowerCLI commands and provide examples of how they are used. The Horizon PowerCLI commands must be enumerated using either a local, or remote, PowerCLI session. To establish a remote session, refer to the Establishing a Remote Horizon PowerCLI Session section found earlier in this chapter.

Listing all Horizon PowerCLI commands

The Get-Command PowerShell command is used to display all of the commands available in the specified PowerShell snap-in. To display a current list of PowerCLI commands available in the version of Horizon you are working with, use the following command:

Get-Command -PSSnapin VMware.View.Broker | more 

Tip

VMware ...

Get Implementing VMware Horizon 7 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.