7.0
Table Of Contents
- View Integration
- Contents
- View Integration
- Introduction to View Integration
- Integrating View with the Event Database
- Using View PowerCLI
- Getting Started with View PowerCLI
- View Administrator, PowerCLI Cmdlets, and View Command-Line Interfaces Compared
- View PowerCLI cmdlet Reference
- View PowerCLI cmdlet Parameters
- Examples of Using View PowerCLI cmdlets
- Managing View Connection Server Instances
- Managing vCenter Server Instances 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 and Updating Manual Unmanaged Desktop Pools
- Displaying Information About Users and Groups
- Managing Desktop Entitlements
- Managing Remote Sessions
- Managing Virtual Machines
- Displaying Information About Physical Machines
- Updating Virtual Machine Ownership
- Displaying Event Reports
- Displaying and Updating Global Settings
- Displaying and Adding License Keys
- Examples of Using View PowerCLI to Perform Advanced Tasks
- Assigning Multiple Network Labels to a Desktop Pool
- Network Label Configuration File Format
- Example Network Label Configuration File
- Obtain and Export NIC and Network Label Information
- Verify and Edit a Network Label Configuration File
- Deploy a Desktop Pool That Uses Multiple Network Labels
- Displaying Network Label Assignments for a Pool
- Displaying Network Label Assignments for a Virtual Machine
- Displaying vCenter Server Network Label Assignments for a Virtual Machine
- Disable Automatic Network Label Assignments
- Customizing LDAP Data
- Integrating View with Microsoft SCOM
- Setting Up a SCOM Integration
- Assign a Name to the View Connection Server Group
- View Management Packs
- Import the View Management Packs on the SCOM Server
- Enable a Proxy Agent on a View Connection Server Host or Security Server
- Run the Discovery Script in the Operations Manager Console
- View Connection Server and Security Server Managed Objects
- View Object Classes and Relationships
- Monitoring View in the Operations Manager Console
- Setting Up a SCOM Integration
- Examining PCoIP Session Statistics with WMI
- Setting Desktop Policies with Start Session Scripts
- Index
Table 3‑16. Examples of Common vCenter Server Management Tasks in View (Continued)
Task Example View PowerCLI cmdlet Syntax
Change the create ramp factor value for
all vCenter Server instances in a specific
DNS domain
Get-ViewVC -serverName *.mycorp.com | Update-ViewVC -
createRampFactor 5
Remove a vCenter Server instance from
the View configuration
Get-ViewVC -serverName vc02.mydom.int | Remove-ViewVC
Managing Desktop Pools
You can use View PowerCLI cmdlets to perform desktop pool management tasks.
Table 3‑17. Examples of Common Desktop Pool Management Tasks
Task Example View PowerCLI cmdlet Syntax
Get information about a desktop pool that
has a specific display name
Get-Pool -displayName "My Pool 1"
Get information about all desktop pools
that have a display name with a specific
prefix
Get-Pool -pool_id mypool-*
Get information about all desktop pools
that are configured to use the PCoIP
display protocol
Get-Pool -protocol PCOIP
Get information about all individual
unmanaged desktop pools
Get-Pool -poolType IndividualUnmanaged
Remove a desktop pool that has a specific
pool ID
Remove-Pool -pool_id dtpool-10
Remove a desktop pool that has a specific
pool ID and terminate any active sessions,
but do not delete its image from disk
Remove-Pool -pool_id dtpool-12 -TerminateSession $true -
DeleteFromDisk $false
Remove a desktop pool that has a specific
display name and delete its image from
disk
Get-Pool -displayName "My Pool 1" | Remove-Pool -
DeleteFromDisk $true
Creating and Updating Automatically Provisioned Desktop Pools
You can use the Get-ViewVC and Update-AutomaticPool cmdlets to create and update automatically
provisioned desktop pools.
In the following example, the Get-ViewVC cmdlet adds an automatically provisioned desktop pool called
auto1. The desktop pool is managed by a vCenter Server instance called vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Add-AutomaticPool -pool_id auto1 -displayName "ADP1"
-namePrefix "adp1-{n:fixed=4}" -vmFolderPath /AutoConfig/vm
-resourcePoolPath /AutoConfig/host/Resources -templatePath /AutoConfig/vm/ADP_template
-dataStorePaths /host/datastore_1/lun10 -customizationSpecName "Windows 7 Variation 3"
-minimumCount 4 -maximumCount 10
You can provision all the desktops in advance by setting the -minimumCount and -maximumCount parameters
to the same value.
In the following example, the Update-AutomaticPool cmdlet updates the configuration of an automatically
provisioned desktop pool called auto1.
Update-AutomaticPool -pool_id auto1 -displayName "Automatic Desktop Pool 1"
-isProvisioningEnabled $false -dataStorePaths /host/datastore_1/lun10;/host/datastore_1/lun12
Chapter 3 Using View PowerCLI
VMware, Inc. 41