Integration

Table Of Contents
VMware, Inc. 31
3
View PowerCLI provides an easy-to-use PowerShell interface to View. You can use the View PowerCLI
cmdlets to perform various administration tasks on View components.
This chapter includes the following topics:
“Introduction to View PowerCLI” on page 31
“View PowerCLI Cmdlets” on page 34
View PowerCLI Cmdlet Parameters on page 38
“Examples of Using View PowerCLI Cmdlets” on page 41
Assign Multiple Network Labels to a Desktop Pool” on page 51
Introduction to View PowerCLI
Windows PowerShell is a command-line and scripting environment that is designed for Microsoft Windows.
PowerShell uses the .NET object model and provides administrators with management and automation
capabilities. As with any other console environment, you work with PowerShell by running commands, which
are called cmdlets in PowerShell.
The command-line syntax for the View PowerCLI cmdlets is the same as generic PowerShell syntax. See the
Microsoft documentation for more information about using PowerShell.
View includes 45 View PowerCLI cmdlets. You can use these cmdlets in conjunction with the vSphere
PowerCLI cmdlets, which provide an administrative interface to the VMware vSphere product. If you have
installed vSphere PowerCLI on a Connection Server instance, these cmdlets are loaded automatically when
you launch View PowerCLI.
You can reference virtual machines and vCenters by ID in View PowerCLI, but you cannot pass such entries
as objects. You must provide a full path to other vSphere objects such as resource pools and folders. You can
use the View PowerCLI cmdlets to examine the configuration of vCenter Servers within View.
The View PowerCLI cmdlets are located in the PowershellServiceCmdlets.dll file in the directory
C:\Program Files\VMware\VMware View\Server\bin. This file constitutes the VMware.View.Broker
snapin. The script configuration file for the View PowerCLI cmdlets is named InitViewCmdlets.ps1, and
this file is located in the Extras folder in the View installation directory. You can edit and extend the script to
define cmdlet aliases, to configure the environment, or to set startup actions.
Using View PowerCLI
3