Integration
Table Of Contents
- View Integration
- Contents
- View Integration
- Introduction to View Integration
- Integrating View with the Event Database
- Using View PowerCLI
- Getting Started with View PowerCLI
- View Administrator, View PowerCLI, and vdmadmin Compared
- View PowerCLI cmdlet Reference
- View PowerCLI cmdlet Parameters
- Examples of Using View PowerCLI cmdlets
- Managing View Connection Server Instances
- Managing vCenter Server Instances 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 and Updating Manual Unmanaged Desktop Pools
- Displaying Information About Users and Groups
- Managing Desktop Entitlements
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Machines
- Updating Virtual Machine Ownership
- Displaying Event Reports
- Displaying and Updating Global Settings
- Displaying and Adding License Keys
- Examples of Using View PowerCLI to Perform Advanced Tasks
- Assigning Multiple Network Labels to a Desktop Pool
- Network Label Configuration File Format
- Example Network Label Configuration File
- Obtain and Export NIC and Network Label Information
- Verify and Edit a Network Label Configuration File
- Deploy a Desktop Pool That Uses Multiple Network Labels
- Displaying Network Label Assignments for a Pool
- Displaying Network Label Assignments for a Virtual Machine
- Displaying vCenter Server Network Label Assignments for a Virtual Machine
- Disable Automatic Network Label Assignments
- Customizing LDAP Data
- Integrating View with Microsoft SCOM
- Setting Up a SCOM Integration
- Assign a Name to the View Connection Server Group
- View Management Packs
- Import the View Management Packs on the SCOM Server
- Enable a Proxy Agent on a View Connection Server Host or Security Server
- Run the Discovery Script in the Operations Manager Console
- View Connection Server and Security Server Managed Objects
- View Object Classes and Relationships
- Monitoring View in the Operations Manager Console
- Setting Up a SCOM Integration
- Examining PCoIP Session Statistics with WMI
- Setting Desktop Policies with Start Session Scripts
- Index
2 Display the View PowerCLI help.
Option Action
List all View PowerCLI cmdlets
Run the Get-Command cmdlet.
For example: Get-Command -PSSnapin VMware.View.Broker | more
Display help for a specific cmdlet
Type Get-Help followed by the name of the cmdlet.
For example: Get-Help Add-ViewVC | more
Display detailed help for a specific
cmdlet
Type Get-Help followed by the name of the cmdlet and the -full
parameter.
For example: Get-Help Add-ViewVC -full | more
Alternatively, use the help alias for Get-Help.
For example: Add-ViewVC -full | more
Examining View PowerCLI cmdlet Errors
View PowerCLI cmdlets handle all errors as non-terminating errors that halt the execution of a cmdlet but
do not terminate a pipeline. You can examine the $error automatic variable to determine the cause of an
error.
To control how PowerShell handles non-terminating errors and how it displays errors in the shell, set the
standard PowerShell $ErrorActionPreference and $errorView automatic variables.
Piping and Specifying Objects of the Same Type
If you attempt to pipe an object into a cmdlet and specify an object of the same type to that cmdlet, the
cmdlet fails with the following error.
The input object cannot be bound to any parameters for the command either because the command
does not take pipeline input or the input and its properties do not match any of the parameters
that take pipeline input.
For example, the following cmdlet usage produces this error.
Get-Pool -pool_id Pool1 | Update-ManualPool -pool_id Pool2 -displayName “Manual Pool 2”
Escaping Characters in vCenter Server Path Names
If you specify a path to a vCenter Server folder that includes certain special characters in the name of an
entity, you must escape the special characters.
Table 3‑1. Escape Sequences for Special Characters
Special Character Escape Sequence
% %25
/ %2f
\ %5c
Do not escape the slashes in the path name itself. For example, represent the path to the
folder /datacenter_01/vm/img%-12 as /datacenter_01/vm/img%25-12.
Certain cmdlets and parameters require escape sequences in entity names.
Chapter 3 Using View PowerCLI
VMware, Inc. 29