4.5
Table Of Contents
- VMware View Integration Guide
- 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
- 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, Inc. 41
Chapter 3 Using View PowerCLI
Get-DesktopVM -pool_id lcdpool_2 | Send-LinkedCloneRecompose -schedule ((Get-Date).AddHours(8))
-parentVMPath /AutoPoolVMs/parent2 -parentSnapshotPath /AutoPoolSnapshots/parent2_snapshot
-forceLogoff $true -stopOnError $true
Creating and Updating Manually Provisioned Desktop Pools
Createthemanuallyprovisioneddesktoppoolman1fromthedesktopslistedbythevCenterServer
vc.mydom.int.
Get-ViewVC -serverName vc.mydom.int | Get-DesktopVM | Add-ManualPool -pool_id man1
-isUserResetAllowed $true
Updatetheconfigurationofthemanuallyprovisioneddesktoppoolman1.
Update-ManualPool -pool_id man1 -displayName "Manual Desktop 1" -isUserResetAllowed $false
Creating Manual Unmanaged Desktop Pools
Createtheunmanageddesktoppoolunman1thatcontainsthephysicalmachinespm01andpm02.
Add-ManualUnmanagedPool -pool_id unman1 -pm_id_list pm01;pm02 -isUserResetAllowed $true
Updatetheconfigurationoftheunmanageddesktoppoolunman1.
Update-ManualUnmanagedPool -pool_id unman1 -displayName "Unmanaged Desktop 1"
-isUserResetAllowed $false
Creating and Updating Desktops Provisioned by Terminal Servers
Returninformationaboutaterminalserver.
Get-TerminalServer -hostname tsvr01
Addthedesktoppooltsd1usingamachinethatisprovidedbytheterminalserverataspecifiedIPaddress.
Get-TerminalServer -hostname tsvr01 | Add-TerminalServerPool -id tsd1 -displayName "Terminal
Server Desktop 1" -allowProtocolOverride $true
Updatetheconfigurationofthedesktoppooltsd1,whichusesamachineprovidedbyaterminalserver.
Get-TerminalServer -hostname tsvr01 | Update-TerminalServerPool -id tsd1 -displayName "Terminal
Server Desktop 1" -allowProtocolOverride $false -autoLogoffTime 1
Obtaining Information About Users and Groups from Active Directory
Returninformationaboutusersinthedomainmydom.
Get-User -domain mydom
Returninformationabouttheuserfredinthedomainmydomandexcludeanyinformationabouttheuser’s
group.
Get-User -name fred -domain mydom -includeGroup $false
Managing Desktop Entitlements
Addanentitlementfortheuserfredinthedomainmydomtousedesktoppooldtop‐12.
Get-User -name mydom\fred | Add-PoolEntitlement -pool_id dtop-12
AddanentitlementtoalldesktoppoolsforauserspecifiedbyanSID.
Get-Pool | Add-PoolEntitlement -sid S-1-5-21-7623811015-3361044348-030300820-1512
Returninformationaboutallentitlementstodesktoppools.
Get-PoolEntitlement
Returninformationabouttheuserswhoareentitledtousedesktoppooldtop‐1.
Get-PoolEntitlement -pool_id dtop-1