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
Managing Desktop Entitlements
You can use View PowerCLI cmdlets to manage desktop entitlements.
Table 3‑19. Examples of Common Desktop Entitlement Management Tasks
Task Example View PowerCLI cmdlet Syntax
Entitle a user in a specific domain to a
specific desktop pool
Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id
dtop-12
Entitle a user to all desktop pools
Get-Pool | Add-PoolEntitlement -sid (Get-User -name
"usr1").sid
Get information about all the users who are
entitled to use a specific desktop pool
Get-PoolEntitlement -pool_id dtop-1
Get information about all the users who are
entitled to use desktop pools that have IDs
with a specific prefix
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Remove an entitlement to use a specific
desktop pool
Get-PoolEntitlement -pool_id dtpool-11 | Remove-
PoolEntitlement
Remote all entitlements
Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove
$true
NOTE If you do not specify the -forceRemove parameter, you can use this
command to obtain information about the entitlements to be removed.
Managing Remote Sessions
You can use View PowerCLI cmdlets to manage remote sessions.
Table 3‑20. Examples of Common Remote Session Management Tasks
Task Example View PowerCLI cmdlet Syntax
List all active remote sessions for a specific
domain user
Get-RemoteSession -username mydom\fred
Disconnect all active sessions for a specific
domain user
Get-RemoteSession -username mydom\fred | Send-
SessionDisconnect
Log off all active remote sessions for a
specific domain user
Get-RemoteSession -username mydom\fred | Send-SessionLogoff
Log off all active remote sessions that use
the RDP display protocol
Get-RemoteSession -protocol RDP | Send-SessionLogoff
Managing Virtual Machines
You can use View PowerCLI cmdlets to manage virtual machines. Horizon Agent must be running in the
virtual machines.
Table 3‑21. Examples of Common Virtual Machine Management Tasks
Task Example View PowerCLI cmdlet Syntax
Get information about the virtual machines
for a specific desktop pool
Get-DesktopVM -pool_id dtpool-3
Get information about the virtual machines
configured on a specific vCenter Server
instance
Get-DesktopVM -vc_id (Get-ViewVC -serverName
vc03.local.int).vc_id
View Integration
44 VMware, Inc.