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
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