6.2
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
- 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
VMware, Inc. 41
Chapter 3 Using View PowerCLI
Examples of Using View PowerCLI Cmdlets
The View PowerCLI cmdlets allow you to perform View operations from the command line or from scripts
instead of using View Administrator. The following sections contain examples that you can adapt and apply
to your own systems.
Displaying Information About a View Connection Server Instance
Display the configuration settings of a View Connection Server instance.
Get-ConnectionBroker -broker_id CONNSVR1
Updating the Configuration of a View Connection Server Instance
Update the settings for direct connections and secureID on a View Connection Server instance.
Update-ConnectionBroker -broker_id CONNSVR1 -directConnect $false -secureIdEnabled $true
-ldapBackupFrequency EveryWeek
Configure a View Connection Server for secure PCoIP connections.
Update-ConnectionBroker -broker_id CS-VSG -directPCoIP $FALSE
Set the PCoIP external URL for a View Connection Server.
Update-ConnectionBroker -broker_id CS-VSG -externalPCoIPURL 10.18.133.34:4172
Set the PCoIP external URL for a security server.
Update-ConnectionBroker -broker_id SECSVR-03 -externalPCoIPURL 10.116.32.136:4172
Managing the Configuration of vCenter Servers in View
Add an entry for a vCenter Server to the View configuration.
Add-ViewVC -serverName vc01.mydom.int -username Administrator -password clydenw
-createRampFactor 5 -deleteRampFactor 5
Return information about a vCenter Server.
Get-ViewVC -serverName vc01.mydom.int
Return information about all vCenter Servers in a specified DNS domain.
Get-ViewVC -serverName *.mycorp.com
Change the values of the ramp factors for the vCenter Server that is configured on server svr11.
Get-ViewVC -serverName svr11.mycorp.com | Update-ViewVC -createRampFactor 5 -deleteRampFactor 10
Change the value of the create ramp factor for the vCenter Servers that are configured in the DNS domain
mycorp.com.
Get-ViewVC -serverName *.mycorp.com | Update-ViewVC -createRampFactor 5
Remove an entry for a vCenter Server from the configuration.
Get-ViewVC -serverName vc02.mydom.int | Remove-ViewVC
mkChkPoint Specifies a scheduled task to create a checkpoint snapshot.
rebalance Specifies a scheduled task to rebalance a linked-clone machine.
refresh Specifies a scheduled task to refresh a linked-clone machine.
replaceUdd Specifies a scheduled task to replace a persistent disk.
resync Specifies a scheduled task to recompose a linked-clone machine.
Table 3-14. View Composer Maintenance Task Types
Task Type Description