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‑22. Examples of Common Event Reporting Tasks (Continued)
Task Example View PowerCLI cmdlet Syntax
Display all the user events that occurred
during for the last 24 hours
Get-EventReport -viewName user_events -startDate ((Get-
Date).AddDays(-1))
Display all the user events that occurred
during the current year
Get-EventReport -viewName user_events -startDate (Get-Date -
Day 01 -Month 01 -Hour 0 -Minute 0 -Second 0)
Displaying and Updating Global Settings
You can use View PowerCLI cmdlets to display and update global settings for View.
Table 3‑23. Examples of Common Global Settings Management Tasks
Task Example View PowerCLI cmdlet Syntax
Display the global settings
Get-GlobalSetting
Update the session timeout setting
Update-GlobalSetting -SessionTimeout 1800
Update the forced logout warning message
and delay period
Update-GlobalSetting -DisplayLogoffWarning $true -
ForcedLogoffAfter $logoutdelay -ForcedLogoffMessage "Forced
log out will occur in $logoutdelay minutes"
Require clients to use SSL to connect and set
the prelogin message
Update-GlobalSetting -UseSSLClient $true -PreLoginMessage
"Insert disclaimer and other notices here."
Displaying and Adding License Keys
You can use the Get-License and Set-License cmdlets to display and add license keys for View.
In this example, the Get-License cmdlet displays the installed license keys.
Get-License
In this example, the Set-License cmdlet adds a license key.
Set-License -key "08A25-0212B-0212C-4D42E"
Examples of Using View PowerCLI to Perform Advanced Tasks
You can combine View PowerCLI and vSphere PowerCLI cmdlets to create PowerShell functions that
perform complex operations, such as resizing pools and adding datastores to desktop pools.
Determining if View Connection Server Is Running
The following PowerShell function determines whether the View Connection Server service is running and
starts the service if it is not running.
# WaitForViewStartup
# Parameters
# $ClearError If $true, clear the $error object on completion.
# $StartBroker If $true, start the service if it is not running.
function WaitForViewStartup
{ param ($ClearError = $true, $StartBroker = $true)
$service = Get-Service wsbroker
if($service -and (Get-Service wstomcat)){
$started = $false
if($service.Status -eq "Stopped"){
if($StartBroker){ # Start the broker if it is not running.
View Integration
46 VMware, Inc.