Integration

Table Of Contents
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 31. 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