4.5

Table Of Contents
VMware View Integration Guide
30 VMware, Inc.
To start the PowerShell console with View PowerCLI loaded
1 SelectStart>AllPrograms>VMware >ViewPowerCLI.
2Ifyouseeanerrormessagestatingthatthescriptconfigurationfilecannotbeloadedbecausethe
executionofscriptsisdisabled,typethefollowingPowerShellcommandandrestartthePowerShell
console.
Set-ExecutionPolicy Unrestricted
Displaying Help for a View PowerCLI cmdlet
TolistallViewPowerCLIcmdlets,typethiscommandinthePowerShellconsole.
Get-Command -PSSnapin VMware.View.Broker | more
YoucangethelpforaspecificcmdletbyusingtheGet-HelpcmdletinthePowerShellconsole.Forexample,
togethelpontheAdd-ViewVCcmdlet.
Get-Help Add-ViewVC | more
Formoredetailedinformation,addthe-fullparameter.
Get-Help Add-ViewVC -full | more
Alternatively,youcanusethe
helpaliasforGet-Help.
help Add-ViewVC -full | more
Error When Piping and Specifying Objects at the Same Time
Ifyouattempttopipeanobjectintoacmdletandspecifyanobjectofthesametypetothatcmdlet,thecmdlet
failswiththefollowingerror.
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.
Forexample,thefollowingcmdletusagewouldproducethiserror.
Get-Pool -pool_id Pool1 | Update-ManualPool -pool_id Pool2 -displayName “Manual Pool 2”
Escaping Characters in vCenter Pathnames
IfyouspecifyapathtoavCenterfolderthatincludescertainspecialcharactersinthenameofanentity,you
mustescapethesecharacters.Table 31showstheescapesequencesforspecialcharacters.
Donotescapetheslashesinthepathnameitself.Forexample,youwouldrepresentthepathto
thefolder
/datacenter_01/vm/img%-12as/datacenter_01/vm/img%25-12.
Table 3-1. Escape Sequences for Special Characters
Special Character Escape Sequence
%%25
/%2f
\%5c