Integration
Table Of Contents
- View Integration
- Contents
- Introduction
- Integrating with the Event Database
- Using View PowerCLI
- Introduction to View PowerCLI
- View PowerCLI Cmdlets
- View Administrator, View PowerCLI Cmdlet, and vdmadmin Operations
- View PowerCLI Cmdlet Parameters
- Examples of Using View PowerCLI Cmdlets
- Displaying Information About a View Connection Server Instance
- Updating the Configuration of a View Connection Server Instance
- Managing the Configuration of vCenter Servers in View
- Managing Desktop Pools
- Creating and Updating Automatically Provisioned Desktop Pools
- Creating and Updating Linked-Clone Desktop Pools
- Creating and Updating Manually Provisioned Desktop Pools
- Creating Manual Unmanaged Desktop Pools
- Creating and Updating Desktops Provisioned by RDS Hosts
- Obtaining Information About Users and Groups from Active Directory
- Managing Desktop Entitlements
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Computers
- Updating the Ownership of Machines
- Displaying Information About Events
- Managing the Global Configuration of View
- Managing View Licenses
- Examples of Using View PowerCLI for Enhanced Functionality
- Assign Multiple Network Labels to a Desktop Pool
- Customizing LDAP Data
- Integrating with SCOM
- View Management Packs
- Name a View Connection Server Group
- Import the View MPs
- View Discovery Script
- Run the Discovery Script
- Display Discovered Objects
- Display Managed Objects
- Views and Monitors
- Enable a Proxy Agent on a Server
- Display Performance Data
- Display Information About an Alert
- Restart a Service
- Exclude a Domain from Connectivity Monitoring
- Close Alerts
- Class and Relationship Definitions
- Examining PCoIP Session Statistics
- Dynamically Setting Desktop Policies with Start Session Scripts
- Index
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