Integration

Table Of Contents
Using View PowerCLI 3
Eective in Horizon 7 version 7.0.3, View PowerCLI is deprecated.
For previous versions of Horizon 7, you can use View PowerCLI as an easy-to-use PowerShell interface to
View and use View PowerCLI cmdlets to perform various administration tasks on View components.
In Horizon 7 version 7.0.3, you can use Horizon PowerCLI cmdlets with VMware PowerCLI. Use Horizon
PowerCLI cmdlets to perform various administration tasks on Horizon components.
For more information about Horizon PowerCLI cmdlets, read the VMware PowerCLI Cmdlets Reference.
For information on the API specications to create advanced functions and scripts to use with Horizon
PowerCLI, see the View API Reference at the VMware Developer Center.
For more information on sample scripts that you can use to create your own Horizon PowerCLI scripts, see
the Horizon PowerCLI community on GitHub.
This chapter includes the following topics:
n
“Geing Started with View PowerCLI,” on page 27
n
“View Administrator, PowerCLI Cmdlets, and View Command-Line Interfaces Compared,” on
page 30
n
“View PowerCLI cmdlet Reference,” on page 34
n
“View PowerCLI cmdlet Parameters,” on page 36
n
“Examples of Using View PowerCLI cmdlets,” on page 40
n
“Examples of Using View PowerCLI to Perform Advanced Tasks,” on page 46
n
Assigning Multiple Network Labels to a Desktop Pool,” on page 52
Getting Started with View PowerCLI
PowerShell is a command line and scripting environment designed for Microsoft Windows. PowerShell uses
the .NET object model and provides administrators with management and automation capabilities. You
work with PowerShell by running commands, which are called cmdlets in PowerShell. The command line
syntax for View PowerCLI cmdlets is the same as generic PowerShell syntax.
The View PowerCLI cmdlets are dened in the PowershellServiceCmdlets.dll le, which is installed in the
C:\Program Files\VMware\VMware View\Server\bin directory. The PowershellServiceCmdlets.dll le
constitutes the VMware.View.Broker snapin.
You can edit and extend the View PowerCLI cmdlets script conguration le, InitViewCmdlets.ps1, to
dene cmdlet aliases, congure the environment, and set startup actions. InitViewCmdlets.ps1 is in the
Extras folder in the View installation directory.
VMware, Inc.
27