Using View Powercli; Introduction To View Powercli; Start The Powershell Console With View Powercli Loaded - VMware View Manager 4.5 Integration Manual

Hide thumbs Also See for View Manager 4.5:
Table of Contents

Advertisement

3

Using View PowerCLI

View PowerCLI provides an easy‐to‐use PowerShell interface to VMware 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 29
"View PowerCLI Cmdlets" on page 31
"View PowerCLI Cmdlet Parameters" on page 35
"Examples of Using View PowerCLI Cmdlets" on page 39

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.
VMware View 4.5 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. You 
can also use the View PowerCLI cmdlets to examine the configuration of vCenter Servers in VMware View.
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.
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.

Start the PowerShell Console with View PowerCLI Loaded

You can run the View PowerCLI cmdlets directly on a View Connections Server host that has the following 
software installed.
VMware View 4.5 or later
Microsoft .NET framework
Windows PowerShell 1.0
To use the View PowerCLI cmdlets to change the configuration of View, you must be logged into a View 
Connection Server instance as a user in a role with sufficient privileges, such as the Administrators role. If your 
role is a read‐only role, you cannot update configuration data. For more information, see the VMware View 
Administrator's Guide.
VMware, Inc.
3
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

View composer 2.5

Table of Contents