Integration

Table Of Contents
View Integration
32 VMware, Inc.
Start the PowerShell Console with View PowerCLI Loaded
You can run the View PowerCLI cmdlets directly on a View Connections Server host that has the following
software installed.
View 4.5 or later
Microsoft .NET framework
Windows PowerShell 1.0
To use the View PowerCLI cmdlets to change the configuration of View, you must be logged into a View
Connection Server instance as a user in a role with sufficient privileges, such as the Administrators role. If your
role is a read-only role, you cannot update configuration data. For more information, see the View
Administration document.
To start the PowerShell console with View PowerCLI loaded
1 Select Start > All Programs > VMware > View PowerCLI.
2 If you see an error message stating that the script configuration file cannot be loaded because the
execution of scripts is disabled, type the following PowerShell command and restart the PowerShell
console.
Set-ExecutionPolicy Unrestricted
Accessing View PowerCLI cmdlets from a Remote System
If you use the PowerShell remoting feature to access the View PowerCLI cmdlets from a remote system, be sure
to take the same precautions for protecting the View PowerCLI operations that you would take for other
remoting PowerShell operations.
You can add the View PowerCLI snapin to the Powershell profile on the remote system so that you do not have
to load and initialize the View PowerCLI snapin each time you restart the system.
To add the View PowerCLI snapin to the Powershell profile
1 On the remote system, open the following file:
C:\Windows\System32\WindowsPowerShells\v1.0\Profile.ps1
2 Add the following line:
add-pssnapin vm*
Displaying Help for a View PowerCLI cmdlet
To list all View PowerCLI cmdlets, type this command in the PowerShell console.
Get-Command -PSSnapin VMware.View.Broker | more
You can get help for a specific cmdlet by using the Get-Help cmdlet in the PowerShell console. For example,
to get help on the Add-ViewVC cmdlet.
Get-Help Add-ViewVC | more
For more detailed information, add the -full parameter.
Get-Help Add-ViewVC -full | more
Alternatively, you can use the help alias for Get-Help.
help Add-ViewVC -full | more