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
44 VMware, Inc.
Create the manually provisioned desktop pool man1 from the desktops listed by the vCenter Server
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-DesktopVM -poolType Manual | Add-ManualPool -pool_id
man1 -isUserResetAllowed $false
Update the configuration of the manually provisioned desktop pool man1.
Update-ManualPool -pool_id man1 -displayName "Manual Desktop 1" -isUserResetAllowed $true
Creating Manual Unmanaged Desktop Pools
Create the unmanaged desktop pool unman1 that contains the physical machines pm01 and pm02.
Add-ManualUnmanagedPool -pool_id unman1 -pm_id_list pm01;pm02 -isUserResetAllowed $true
Update the configuration of the unmanaged desktop pool unman1.
Update-ManualUnmanagedPool -pool_id unman1 -displayName "Unmanaged Desktop 1"
-isUserResetAllowed $false
Creating and Updating Desktops Provisioned by RDS Hosts
Return information about an RDS host (formerly called a terminal server).
Get-TerminalServer -hostname tsvr01
Add the desktop pool tsd1 using a machine that is provided by the RDS host at a specified IP address.
Get-TerminalServer -hostname tsvr01 | Add-TerminalServerPool -pool_id tsd1 -displayName "Terminal
Server Desktop 1" -allowProtocolOverride $true
Update the configuration of the desktop pool tsd1, which uses a machine provided by an RDS host.
Get-TerminalServer -hostname tsvr01 | Update-TerminalServerPool -pool_id tsd1 -displayName
"Terminal Server Desktop 1" -allowProtocolOverride $false -autoLogoffTime 1
Obtaining Information About Users and Groups from Active Directory
Return information about users in the domain mydom.
Get-User -domain "mydom"
Return information about the user fred in the domain mydom and exclude any information about the user’s
group.
Get-User -name "fred" -domain "mydom" -includeGroup $false
Managing Desktop Entitlements
Add an entitlement for the user fred in the domain mydom to use desktop pool dtop-12.
Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12
Add an entitlement to all desktop pools for the user usr1.
Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid
Return information about all entitlements to desktop pools.
Get-PoolEntitlement
Return information about the users who are entitled to use desktop pool dtop-1.
Get-PoolEntitlement -pool_id dtop-1
Return information about the users who are entitled to use desktop pools whose IDs start with dtpool-.
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Remove the entitlement to use desktop pool dtpool-11.
Get-PoolEntitlement -pool_id dtpool-11 | Remove-PoolEntitlement