4.6
Table Of Contents
- VMware 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 VMware 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 Terminal Servers
- Obtaining Information About Users and Groups from Active Directory
- Managing Desktop Entitlements
- Managing Local Desktops
- 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 VMware View
- Managing View Licenses
- Examples of Using View PowerCLI for Enhanced Functionality
- 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
- Index
VMware View Integration
42 VMware, Inc.
Managing Desktop Entitlements
Addanentitlementfortheuserfredinthedomainmydomtousedesktoppooldtop‐12.
Get-User -name "mydom\fred" | Add-PoolEntitlement -pool_id dtop-12
Addanentitlementtoalldesktoppoolsfortheuserusr1.
Get-Pool | Add-PoolEntitlement -sid (Get-User -name "usr1").sid
Returninformationaboutallentitlementstodesktoppools.
Get-PoolEntitlement
Returninformationabouttheuserswhoareentitledtousedesktoppooldtop‐1.
Get-PoolEntitlement -pool_id dtop-1
ReturninformationabouttheuserswhoareentitledtousedesktoppoolswhoseIDsstartwithdtpool‐.
Get-Pool -pool_id dtpool-* | Get-PoolEntitlement
Removetheentitlementtousedesktoppooldtpool‐11.
Get-PoolEntitlement -pool_id dtpool-11 | Remove-PoolEntitlement
Ifyouwanttoremoveallentitlementsfromthesystem,specifythe-forceRemoveparametersetto$true.
Get-PoolEntitlement | Remove-PoolEntitlement -forceRemove $true
Ifyoudonot specifythe-forceRemoveparameter,youcanusethecommandtofindoutinformationabout
theentitlementsthatwouldberemoved.
Managing Local Desktops
Returninformationaboutthelocaldesktopvmcn11.
Get-LocalSession -machine_id (Get-DesktopVM -Name "vmcn11").machine_id
Rollbackthelocaldesktop.
Send-LocalSessionRollback -machine_id (Get-DesktopVM -Name "vmcn11").machine_id
Managing Remote Sessions
Returnthelistofactiveremotesessionsfortheuserfredinthedomainmydom.
Get-RemoteSession -username mydom\fred
Disconnecttheactiveremotesessionsonwhichtheuserfredisloggedin.
Get-RemoteSession -username mydom\fred | Send-SessionDisconnect
Logouttheactiveremotesessionsonwhichtheuserfredisloggedin.
Get-RemoteSession -username mydom\fred | Send-SessionLogoff -session_id
LogouttheactiveremotesessionsthatareusingtheRDPprotocol.
Get-RemoteSession -protocol RDP | Send-SessionLogoff
Managing Virtual Machines
Returninformationaboutthevirtualmachineforthedesktoppooldtpool‐3.
Get-DesktopVM -pool_id dtpool-3
ReturninformationaboutthevirtualmachinesthatareconfiguredonthevCenterServervc03.local.int.
Get-DesktopVM -vc_id (Get-ViewVC -serverName vc03.local.int).vc_id
NOTEViewAgentmustberunningonthevirtualmachines.