Integration

Table Of Contents
You can use View PowerCLI cmdlets in conjunction with vSphere PowerCLI cmdlets. vSphere PowerCLI
cmdlets provide an administrative interface to VMware vSphere. If vSphere PowerCLI is installed on a View
Connection Server instance, the vSphere PowerCLI cmdlets load when you launch View PowerCLI.
You can refer to virtual machines and vCenter Server instances by ID in View PowerCLI, but you cannot
pass these entities as objects. For other vSphere objects, such as resource pools and folders, you must
provide a full path. You can use View PowerCLI cmdlets to examine the conguration of vCenter Server
instances within View.
For general information about using PowerShell, see the Microsoft documentation.
Start the PowerShell Console with View PowerCLI Loaded
You can run the View PowerCLI cmdlets directly on a View Connection Server host.
Prerequisites
Verify that the View Connection Server host has the following software installed.
n
View 4.5 or later
n
Microsoft .NET framework
n
Windows PowerShell 1.0
Procedure
1 Log in to the View Connection Server instance as a user in a role that has sucient privileges to modify
conguration data.
For example, the Administrators role can modify conguration data. A read-only role cannot update
conguration data.
2 Select Start > All Programs > VMware > View PowerCLI.
What to do next
If you receive an error message that states the script conguration le cannot be loaded because the
execution of scripts is disabled, type the PowerShell Set-ExecutionPolicy Unrestricted command and
restart the PowerShell console.
Use View PowerCLI cmdlets from a Remote System
You can use the PowerShell remoting feature to access View PowerCLI cmdlets from a remote system.
Procedure
1 On the remote system, open the C:\Windows\System32\WindowsPowerShells\v1.0\Profile.ps1 le in a
text editor.
2 Add the line add-pssnapin vm* to the Profile.ps1 le.
3 Save your changes.
The View PowerCLI snapin to the PowerShell prole is added on the remote system.
What to do next
Take the same precautions for protecting the View PowerCLI operations as you would for other remoting
PowerShell operations.
View Integration
28 VMware, Inc.