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. 33
Chapter 3 Using View PowerCLI
Error Handling
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 nature of an error.
You can set the standard PowerShell $ErrorActionPreference and $errorView automatic variables to
control how PowerShell handles non-terminating errors and how it displays them in the shell.
Error When Piping and Specifying Objects at the Same Time
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 would produce this error.
Get-Pool -pool_id Pool1 | Update-ManualPool -pool_id Pool2 -displayName “Manual Pool 2”
Escaping Characters in vCenter Path Names
If you specify a path to a vCenter folder that includes certain special characters in the name of an entity, you
must escape these characters. Table 3-1 shows the escape sequences for special characters.
Do not escape the slashes in the path name itself. For example, you would represent the path to the folder
/datacenter_01/vm/img%-12 as /datacenter_01/vm/img%25-12.
Table 3-2 lists the cmdlets and parameters that require you to use escape sequences in entity names.
Table 3-1. Escape Sequences for Special Characters
Special Character Escape Sequence
%%25
/%2f
\%5c
Table 3-2. Cmdlet Parameters Requiring Escape Sequences
Cmdlet Parameters Requiring Escape Sequences
Add-AutomaticLinkedClonePool
Update-AutomaticLinkedClonePool
-datastoreSpecs
-parentVMPath
-resourcePoolPath
-vmfolderPath
Add-AutomaticPool
Update-AutomaticPool
-datastorePaths
-resourcePoolPath
-templatePath
-vmfolderPath
Send-LinkedCloneRecompose -parentVMPath