View Integration VMware Horizon 6 Version 6.2 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
View Integration You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright © 2014 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.
Contents View Integration 7 1 Introduction 9 View Components 9 Integration Interfaces to View 10 2 Integrating with the Event Database 11 Event Database Tables and Schemas 11 Connection Broker Events 13 View Agent Events 19 View Administrator Events 19 Event Message Attributes 26 Sample Database Queries and Views 28 3 Using View PowerCLI 31 Introduction to View PowerCLI 31 Start the PowerShell Console with View PowerCLI Loaded 32 Displaying Help for a View PowerCLI cmdlet 32 Error Handling 33 Error Whe
View Integration Displaying Information About Physical Computers 45 Updating the Ownership of Machines 46 Displaying Information About Events 46 Managing the Global Configuration of View 46 Managing View Licenses 46 Examples of Using View PowerCLI for Enhanced Functionality 47 Checking if a View Connection Server Instance Is Running 47 Resize Automatic and Linked-Clone Desktop Pools 48 Determining Paths to vSphere Inventory Objects 49 Determining Paths to vSphere Datastore Objects 49 Adding and Removing Da
Contents 7 Dynamically Setting Desktop Policies with Start Session Scripts 81 Overview of Configuring Start Session Scripts 81 Example Start Session Scripts 82 Enable the VMware View Script Host Service 83 Configure a User Account to Run the Start Session Script 83 Add Windows Registry Entries for a Start Session Script 83 Index 85 VMware, Inc.
View Integration 6 VMware, Inc.
View Integration This guide describes how to integrate View™ software with third-party software such as Windows PowerShell, business intelligence reporting engines, and Microsoft System Center Operations Manager (SCOM). Intended Audience This book is intended for anyone who wants to customize or integrate software to work with View. The information in this manual is written for experienced Windows or Linux system administrators who are familiar with virtual machine technology and datacenter operations.
View Integration 8 VMware, Inc.
1 Introduction 1 With View, system administrators can provision desktops and control user access to these desktops. Client software connects users to virtual machines running in VMware vSphere™, or to physical systems running within your network environment. In addition, View administrators can configure Remote Desktop Services (RDS) hosts to provide View desktop and application sessions to client devices.
View Integration Integration Interfaces to View You can use several interfaces to integrate View with external applications. 10 Event database – you can configure View to record events to a Microsoft SQL Server or Oracle database. You can then use business intelligence reporting engines to access and analyze this database. View PowerCLI – you can use the PowerShell interface to perform a wide variety of administration tasks on View components.
2w Integrating with the Event Database 2 You can configure View to record events to a Microsoft SQL Server or Oracle database. View records events such as the following examples: End-user actions such as logging in and starting a desktop or application session. Administrator actions such as adding entitlements and creating desktop or application pools. Alerts that report system failures and errors. Statistical sampling such as recording the maximum number of users over a 24-hour period.
View Integration View records details about events to all the database tables. After a certain period of time has elapsed since writing an event record, View deletes the record from the event and event_data tables. You can use View Administrator to configure the time period for which the database keeps a record in the event and event_data tables. See the View Installation document for more information.
Chapter 2 Integrating with the Event Database Table 2-3 shows the schema for the event_data and event_data_historical tables. Table 2-3. Schema for the event_data and event_data_historical Tables Column Name Oracle Data Type SQLServer Data Type BooleanValue SMALLINT tinyint Description Value of a Boolean attribute. 0 = false 1 = true EventID INTEGER int Unique primary key for the event. IntValue INTEGER int Value of an integer attribute.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4.
View Integration Table 2-4.
Chapter 2 Integrating with the Event Database Table 2-4. Connection Broker Events (Continued) EventType Severity ModuleAndEventText BROKER_VC_STATUS_CHANGED_ RECONNECTING INFO Reconnecting to vCenter at address ${VCAddress} BROKER_VC_STATUS_CHANGED_UNKNOWN WARNING The status of vCenter at address ${VCAddress} is unknown BROKER_VC_STATUS_CHANGED_UP INFO vCenter at address ${VCAddress} is up View Agent Events Table 2-5 shows the event types for View Agent. Table 2-5.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-6.
View Integration Table 2-6.
Chapter 2 Integrating with the Event Database Table 2-7. Attributes Used with ModuleAndEventText Messages (Continued) Attribute Name Description EntitlementDisplay Display name of a desktop entitlement. MachineId Identifier of a physical or virtual machine. MachineName Name of a physical or virtual machine. MaintenanceMode Maintenance mode state. ObjectID Identifier of an inventory object. ObjectType Type of an inventory object. PolicyDisplayName Display name of a policy.
View Integration Sample Database Queries and Views NOTE Replace the dbo.VE_ prefix in the examples with the appropriate prefix for your event database server. Display all error events from the event_historical table. CREATE VIEW error_events AS ( SELECT ev.EventID, ev.Time, ev.Module, ev.EventType, ev.ModuleAndEventText FROM dbo.VE_event_historical AS ev WHERE ev.Severity = ‘ERROR’ ); Display all warning events from the event_historical table. CREATE VIEW warning_events AS ( SELECT ev.EventID, ev.
Chapter 2 Integrating with the Event Database List all recent events where an administrator added a ThinApp repository. CREATE VIEW thinapp_repository_added_events AS ( SELECT ev.EventID, ev.Time, ed1.StrValue, ed2.StrValue, ed3.StrValue FROM dbo.VE_event_historical AS ev, dbo.VE_event_data_historical AS ed1, dbo.VE_event_data_historical AS ed2, dbo.VE_event_data_historical AS ed3 WHERE ev.EventID = ed1.EventID AND ev.EventID = ed2.EventID AND ev.EventID = ed3.EventID AND ev.
View Integration 30 VMware, Inc.
3 Using View PowerCLI 3 View PowerCLI provides an easy-to-use PowerShell interface to View. You can use the View PowerCLI cmdlets to perform various administration tasks on View components.
View Integration Start the PowerShell Console with View PowerCLI Loaded You can run the View PowerCLI cmdlets directly on a View Connections Server host that has the following software installed. View 4.5 or later Microsoft .NET framework Windows PowerShell 1.0 To use the View PowerCLI cmdlets to change the configuration of View, you must be logged into a View Connection Server instance as a user in a role with sufficient privileges, such as the Administrators role.
Chapter 3 Using View PowerCLI Error Handling View PowerCLI cmdlets handle all errors as non-terminating errors that halt the execution of a cmdlet but do not terminate a pipeline. You can examine the $error automatic variable to determine the nature of an error. You can set the standard PowerShell $ErrorActionPreference and $errorView automatic variables to control how PowerShell handles non-terminating errors and how it displays them in the shell.
View Integration View PowerCLI Cmdlets You can use View PowerCLI cmdlets to administer View on a View Connection Server instance. You can use the Get-Help cmdlet to obtain more help about a View PowerCLI cmdlet as described in “Displaying Help for a View PowerCLI cmdlet” on page 32. Table 3-3 lists the available View PowerCLI cmdlets ordered by noun. Table 3-3.
Chapter 3 Using View PowerCLI Table 3-3. View PowerCLI Cmdlets Ordered by Noun (Continued) Cmdlet Description Get-User Returns information about users. Remove-UserOwnership Removes the ownership of a virtual machine. Update-UserOwnership Assigns a user (specified as a SID) to a virtual machine. This cmdlet does not support the assignment of users to physical machines. Add-ViewVC Adds a vCenter Server to View. Get-ViewVC Returns information about vCenter Servers.
View Integration Table 3-4.
Chapter 3 Using View PowerCLI Table 3-4.
View Integration Table 3-6. Deletion Policy Settings Deletion Policy Description DeleteOnUse Specifies that the machine is deleted when the user logs out. RefreshOnUse Specifies that the machine is refreshed when the user logs out. This setting applies only to linked-clone desktop pools. Flash Quality Settings Table 3-7 shows the settings that you can use with the -flashQuality parameter to specify a maximum allowable quality for Adobe Flash content. This value overrides the setting on a Web page.
Chapter 3 Using View PowerCLI Table 3-9. LDAP Backup Frequency Settings LDAP Backup Frequency Description EveryWeek Backs up the LDAP database once per week. Never Turns off backup for the LDAP database. Pool Type Settings Table 3-10 shows the settings that you can use with the -poolType parameter to specify the type of a desktop pool. Table 3-10. Pool Type Settings Pool Type Description IndividualUnmanaged Specifies a pool containing an individual unmanaged machine.
View Integration Power Policy Settings Table 3-11 shows the settings that you can use with the -powerPolicy parameter to specify the power policy for a desktop pool. Table 3-11. Power Policy Power Policy Setting Description AlwaysOn Configures a machine to remain powered on, even when no one is using it. If you shut down the machine, it restarts immediately. RemainOn Starts a machine when required if it is powered down. The machine then remains powered on until you shut it down.
Chapter 3 Using View PowerCLI Table 3-14. View Composer Maintenance Task Types Task Type Description mkChkPoint Specifies a scheduled task to create a checkpoint snapshot. rebalance Specifies a scheduled task to rebalance a linked-clone machine. refresh Specifies a scheduled task to refresh a linked-clone machine. replaceUdd Specifies a scheduled task to replace a persistent disk. resync Specifies a scheduled task to recompose a linked-clone machine.
View Integration Managing Desktop Pools Return information about the desktop pool with a specified display name. Get-Pool -displayName "My Pool 1" Return information about all desktop pools with the prefix mypool-. Get-Pool -pool_id mypool-* Return information about all desktop pools that are configured to use the PCoIP protocol. Get-Pool -protocol PCOIP Return information about all individual unmanaged desktop pools. Get-Pool -poolType IndividualUnmanaged Remove the desktop pool dtpool-10.
Chapter 3 Using View PowerCLI Update the configuration of the linked-clone desktop pool lcdpool_1. Get-ViewVC -serverName vc.mydom.
View Integration 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.
Chapter 3 Using View PowerCLI Return a list of active persistent user data disks for the virtual machine vm01. Get-ProfileDisk -VMname vm01 Reset the virtual machines for the desktop pool dtpool-05. Get-Pool -pool_id dtpool-05 | Get-DesktopVM | Send-VMReset Reset the virtual machine for the desktop pool with the display name dtp1. Get-Pool -displayName dtp1 | Get-DesktopVM | Send-VMReset Displaying Information About Physical Computers NOTE View Agent must be running on the computers.
View Integration Set 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." Managing View Licenses Display the installed View license keys. Get-License Add a license key.
Chapter 3 Using View PowerCLI $error.Clear() } Write-Error $err break } } if($ClearError){ $error.Clear() } } } else { Write-Error "The View Connection Server services could not be found. Is the Connection Server installed?" } } Resize Automatic and Linked-Clone Desktop Pools Define PowerShell functions to check the current usage of all desktop pools, and to resize any automatically provisioned or linked-clone desktop pools that are at their maximum capacity.
View Integration # If a pool is using all its desktops, increase its maximum size # or output a warning if it cannot be resized. if($maxdesktops -eq $remotecount){ if($Pool.deliveryModel -eq "Provisioned"){ # Pool type can be resized $newmaximum = [int]$Pool.maximumCount + [int]$increment if($Pool.desktopSource -eq "VC"){ # Resize an automatic pool Update-AutomaticPool -pool_id $Pool.pool_id -maximumCount $newmaximum } elseif ($Pool.
Chapter 3 Using View PowerCLI Determining Paths to vSphere Datastore Objects Define a PowerShell function that uses vSphere PowerCLI to return the full path to a datastore in a cluster as specified by a resource pool. # VVGetDatastorePath # Parameters # $Datastore Datastore object in vSphere PowerCLI. # $ResourcePool Resource pool in cluster.
View Integration Define a PowerShell function to add a datastore to a linked-clone pool. # AddDatastoreToLinkedClonePool # Parameters # $Pool Pool ID of pool to be updated. # $Datastore Full path to datastore to be added. function AddDatastoreToLinkedClonePool { param ($Pool, $Datastore) $PoolSettings = (Get-Pool -pool_id $Pool) $datastores = $PoolSettings.
Chapter 3 Using View PowerCLI The network labels are distributed among the virtual machines in the entire desktop pool. When View provisions desktops, network labels are assigned in alphabetical order. When the maximum number of virtual machines are provisioned with IP addresses using the first network label, View starts assigning the second label, and so on.
View Integration Enabled flag. This flag is set to enabled=true by default. Keep the flag set to true to allow View to assign network labels to the pool. Parameter Definition for NIC. Lists the NICs defined in vCenter Server on the template or the snapshot of the parent virtual machine. Do not edit this section. Parameter Definition for Network. Lists the network labels defined in vCenter Server for the ESXi hosts in the cluster. Network labels are listed in alphabetical order.
Chapter 3 Using View PowerCLI #WARNING! Multiple NICs:(nic1,nic2) detected against network02, #total port count against network10: 488. #IP address might be over-subscribed. ####nic1.network01.maxvm=244 ####nic1.network02.maxvm=244 ####nic1.network03.maxvm=244 ####nic1.network04.maxvm=244 ####nic1.network05.maxvm=244 ####nic1.network06.maxvm=244 ####nic1.network07.maxvm=244 ####nic1.network08.maxvm=244 ####nic1.network09.maxvm=244 ####nic1.network10.maxvm=244 ####nic2.network01.maxvm=244 ####nic2.
View Integration ####nic1.network04.maxvm=244 ####nic1.network05.maxvm=244 nic1.network06.maxvm=244 nic1.network07.maxvm=244 ####nic1.network08.maxvm=244 ####nic1.network09.maxvm=244 ####nic1.network10.maxvm=244 ####nic2.network01.maxvm=244 ####nic2.network02.maxvm=244 ####nic2.network03.maxvm=244 ####nic2.network04.maxvm=244 ####nic2.network05.maxvm=244 ####nic2.network06.maxvm=244 ####nic2.network07.maxvm=244 nic2.network08.maxvm=244 nic2.network09.maxvm=244 ####nic2.network10.
Chapter 3 Using View PowerCLI Network Label Preservation During Recompose and Rebalance Operations During View Composer recompose and rebalance operations, a best effort is made to ensure that the network label of each NIC attached to each linked-clone desktop is preserved when a linked clone inherits new NICs from a new base image.
View Integration Displaying Network Label Information for a Virtual Machine To display the network label assignments for a virtual machine, use the Get-DesktopVM cmdlet. The netLabelAutoAssigns output parameter shows the NIC names and network labels that View has attempted to assign to the virtual machine. You do not have to add a parameter in the command line to display this information. It is displayed automatically with the Get-DesktopVM cmdlet.
Chapter 3 Using View PowerCLI ps_object_type id vc_id Name UnescapedName Path GuestFullName GuestID HostName IPAddress networkLabels machine_id user_sid user_displayname isInPool pool_id isLinkedClone composerTask netLabelAutoAssigns : : : : : : : : : : : : : : : : : : : vc_vm VirtualMachine-vm-46148 2162aa44-e99c-4f1a-875d-dd295681d2ca pool2-85 pool2-85 /resource/vm/Discovered virtual machine/pool2/pool2-85 Microsoft Windows 7 (32-bit) windows7Guest POOL2-85.vdi3.net 192.168.1.
View Integration 58 VMware, Inc.
4 Customizing LDAP Data 4 You can use VMware and Microsoft command tools to export and import LDAP configuration data in LDAP Data Interchange Format (LDIF) files from and into View. These commands are intended for use by advanced administrators who want to use scripts to update configuration data without using View Administrator. If you want to create scripts to update the View configuration, VMware recommends that you use View PowerCLI rather than LDAP commands.
View Integration Export LDAP Configuration Data You can export configuration data from a standard or replica View Connection Server instance to an LDIF file by running the vdmexport command-line utility. By default, the vdmexport command-line utility is installed in the C:\Program Files\VMware\VMware View\Server\tools\bin directory. In View 3.
Chapter 4 Customizing LDAP Data The following extract from an LDIF file shows sample entries for a desktop pool named Pool1, which contains two virtual desktops named VM1 and VM2. The desktop pool entry is paired with the Desktop Application entry, which is also named Pool1.
View Integration pae-Disabled: 0 # # Further Virtual Desktop VM entries as required # # # VM Pool entry Pool1 # DN: CN=Pool1,OU=Server Groups,DC=vdi,DC=vmware,DC=int changetype: add objectClass: top objectClass: pae-ServerPool cn: Pool1 pae-VCDN: CN=b180b93b-2dd3-4b58-8a81-b8534a4b7565,OU=VirtualCenter,OU=Properties,DC=vdi, DC=vmware,DC=int pae-MemberDN: CN=vm1,OU=Servers,DC=vdi,DC=vmware,DC=int pae-MemberDN: CN=vm2,OU=Servers,DC=vdi,DC=vmware,DC=int pae-VmPowerPolicy: remainon pae-VmProvEnabled: 1 pae-VmP
Chapter 4 Customizing LDAP Data Table 4-1 lists the attributes that are important when you modify a desktop pool definition. Table 4-1. Important Attributes for Defining a Desktop Pool Entry Attribute Description Virtual Desktop VM cn Specifies the common name of an entry. If you require names to be generated automatically, specify globally unique identifier (GUID) strings. You can use any reliable GUID generator, such as the mechanism provided by .NET (for example, by calling System.Guid.NewGuid().
View Integration Import LDAP Configuration Data Using the LDIFDE Command You can import configuration data from an LDIF file into a standard or replica View Connection Server by running the Microsoft LDIFDE command. In View 4.5 and later releases, you should use the vdmimport command to import configuration data. The vdmimport command does not display the large number of error messages that are produced by running the LDIFDE command. See “Import LDAP Configuration Data” on page 63.
5 Integrating with SCOM 5 You can use Microsoft System Center Operations Manager (SCOM) to monitor the state of View components, including View Connection Server instances and security servers and View services running on these hosts.
View Integration VMware.View.Library.mp contains class and relationship definitions for the managed objects in View. See “Class and Relationship Definitions” on page 71. VMware.View.Image.Library.mp contains the graphics that represent the classes that are defined in VMware.View.Library.mp. Name a View Connection Server Group You can assign a name to a group of one or more View Connection Server hosts and security servers.
Chapter 5 Integrating with SCOM VMware.View.Cluster VMware.View.Cluster.Node.Item VMware.View.ConnectionServerRole.Item VMware.View.Component.ConnectionServer.Item VMware.View.Component.Framework.Item VMware.View.Component.Web.Item VMware.View.Component.Directory.Item VMware.View.Component.SecureGateway.Item VMware.View.Component.MessageBus.Item The agent discovers the following managed objects for a Security Server. VMware.View.Cluster VMware.View.Cluster.Node.
View Integration Display Managed Objects You can display the View objects that SCOM manages, and the relationships between these objects. To display managed objects in View and their relationships In the Operations Manager console, go to Monitoring\VMware View, and select the required view. Views and Monitors The VMware.View.Monitoring MP contains the views and monitors that you can use with View in the Operations Manager console.
Chapter 5 Integrating with SCOM Table 5-2. View Service Component Monitors for a View Connection Server instance (Continued) Monitor Display Name Monitored Service SecureGatewayCheck Security Gateway Service Health VMware View Security Gateway Component WebServiceCheck Web Service Health VMware View Web Component DirectoryServiceCheck Directory Service Health VMwareVDMDS Table 5-3 shows the service component monitors that are provided for a security server. Table 5-3.
View Integration Enable a Proxy Agent on a Server You must enable the proxy agent on each View Connection Server host or security server that you want to monitor. To enable the proxy agent on a server 1 In the Operations Manager console, go to Administration\Agent Managed, select the server, and click Properties. 2 Under the Security tab, select the option Allow this agent to act as a proxy and discover managed objects on other computers. 3 Click OK.
Chapter 5 Integrating with SCOM 3 Right click on the Domain Connectivity Health entry for the Connection Server in the Health Explorer and select Monitor Properties. 4 Under the Overrides tab, click Override and select the option for all objects of the same class. 5 In the Override Properties window, select the Override check box for the DomainExcludeList parameter, enter the name of the excluded domain in the Override Setting field, and select the Enforced check box.
View Integration Table 5-6. View Library Base Classes (Continued) Class Name Description VMware.View.Component.Framework Represents the Framework component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component. VMware.View.Component.MessageBus Represents the Message Bus component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component. VMware.
Chapter 5 Integrating with SCOM Table 5-7. View Library Concrete Classes (Continued) Class Name Description VMware.View.Component.SecurityGateway.Item Represents version 5.1.x or a later release of the Security Gateway component that has been installed on a member of a View Connection Server group. This class inherits its properties from VMware.View.Component.SecureGateway. VMware.View.Component.SecurityServer.Item Represents version 5.1.
View Integration 74 VMware, Inc.
6 Examining PCoIP Session Statistics 6 You can use Windows Management Instrumentation (WMI) to examine performance statistics for a PCoIP session by using any of the supported programming interfaces, including C#, C++, PowerShell, VBScript, VB .NET, and Windows Management Instrumentation Command-line (WMIC). You can also use the Microsoft WMI Code Creator tool to generate VBScript, C#, and VB .NET code that accesses the PCoIP performance counters.
View Integration General Session Statistics The WMI class name for PCoIP general session statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionGeneralStatistics. Table 6-1 shows the general statistics for a PCoIP session. Table 6-1. General Statistics WMI Property Name Description BytesReceived Total number of bytes of PCoIP data that have been received since the PCoIP session started. BytesSent Total number of bytes of PCoIP data that have been transmitted since the PCoIP session started.
Chapter 6 Examining PCoIP Session Statistics Table 6-2. Audio Statistics (Continued) WMI Property Name Description AudioTXBWkbitPersec Bandwidth for outgoing audio packets averaged over the sampling period, in seconds. AudioTXBWLimitkbitPersec Transmission bandwidth limit in kilobits per second for outgoing audio packets. The limit is defined by a GPO setting.
View Integration Network Statistics The WMI class name for PCoIP network statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionNetworkStatistics. Table 6-4 shows the network statistics for a PCoIP session. Table 6-4. Network Statistics WMI Property Name Description RoundTripLatencyms Round trip latency in milliseconds between the PCoIP server and the PCoIP client. RXBWkbitPersec Overall bandwidth for incoming PCoIP packets averaged over the sampling period, in seconds.
Chapter 6 Examining PCoIP Session Statistics Use this formula to prevent the packet loss percent from becoming greater than 100%. This calculation is required because PacketsLost and PacketsSent are asynchronous.. Do not use TXPacketLostPercent or TXPacketLostPercent_Base for the preceding calculation. USB Statistics The WMI class name for PCoIP USB statistics is Win32_PerfRawData_TeradiciPerf_PCoIPSessionUSBStatistics. Table 6-5 shows the USB statistics for a PCoIP session. Table 6-5.
View Integration 80 VMware, Inc.
7 Dynamically Setting Desktop Policies with Start Session Scripts 7 When a user connects or reconnects to a View desktop, you might want to dynamically configure particular View desktop settings before the desktop session starts, according to information recieved from Horizon Client and View Connection Server. For example, you might want to set different policies for clipboard redirect, mapped drives, or other desktop features, depending on the location of the user’s client system.
View Integration Example Start Session Scripts Start session scripts cannot run interactively. A start session script runs in an environment created by View, and the script must obtain its input data from this environment. The input data is gathered from environment variables on the client computer. For a list of similar variables, see “Client System Information Sent to View Desktops” in the Setting Up Desktop and Application Pools in View document.
Chapter 7 Dynamically Setting Desktop Policies with Start Session Scripts Enable the VMware View Script Host Service You must configure the VMware View Script Host service to be enabled on each View desktop virtual machine where you want View to run the start session script. By default, the VMware View Script Host service is disabled. To configure the VMware View Script Host service 1 Start the Windows Services tool by entering services.msc at the command prompt.
View Integration 6 In Value data, enter the command line that invokes the start session script and click OK. Specify the full path of the start session script and any files that it requires. 7 Navigate to HKLM\SOFTWARE\VMware, Inc.\VMware VDM\Agent\Configuration. If a Configuration key does not exist, right-click Agent, select New > Key, and create the key. 8 In the navigation area, right-click Configuration, select New > DWord (32 bit) Value, and type RunScriptsOnStartSession.
Index A Acknowledged column 12 Active Alerts view 68 Add-AutomaticLinkedClonePool cmdlet 34 Add-AutomaticPool cmdlet 34 Add-ManualPool cmdlet 34 Add-ManualUnmanagedPool cmdlet 34 Add-PoolEntitlement cmdlet 34 Add-ViewVC cmdlet 35 ADMIN 23 ADMIN_ADD_DESKTOP_ENTITLEMENT 19 ADMIN_ADD_LICENSE 19 ADMIN_ADD_LICENSE_FAILED 19 ADMIN_ADD_PM 19 ADMIN_ADD_PM_FAILED 19 ADMIN_ADD_THINAPP_ENTITLEMENT 20 ADMIN_ADD_THINAPP_ENTITLEMENT_ FAILED 20 ADMIN_ADD_THINAPP_POOL_ ENTITLEMENT 20 ADMIN_ADMINSTRATOR_REMOVE_FAILED 20 AD
View Integration ADMIN_REMOVE_THINAPP_ENTITLEMENT 22 ADMIN_REMOVE_THINAPP_ENTITLEMENT_ FAILED 22 ADMIN_REMOVE_THINAPP_POOL_ ENTITLEMENT 22 ADMIN_RESET_THINAPP_STATE 22 ADMIN_RESET_THINAPP_STATE_FAILED 22 ADMIN_ROLE_ADD_FAILED 23 ADMIN_ROLE_ADDED 23 ADMIN_ROLE_PRIV_UPDATE_FAILED 23 ADMIN_ROLE_PRIV_UPDATED 23 ADMIN_ROLE_REMOVE_FAILED 23 ADMIN_ROLE_REMOVED 23 ADMIN_ROLE_RENAME_FAILED 23 ADMIN_ROLE_RENAMED 23 ADMIN_SECURITY_SERVER_ADD_FAILED 23 ADMIN_SECURITY_SERVER_ADDED 23 ADMIN_SECURITY_SERVER_EDIT_FAILED 2
Index displaying information about 70 excluding domains from SCOM monitoring 70 AttrChangeType attribute 26 attributes, event database 26 AttrName attribute 26 AttrValue attribute 26 AudioBytesReceived statistic 76 AudioBytesSent statistic 76 AudioTXBWLimitkbitPersec statistic 77 B BooleanValue column 13 BROKER_AGENT_OFFLINE 13 BROKER_AGENT_ONLINE 13 BROKER_DAILY_MAX_DESKTOP_SESSIONS 14 BROKER_DESKTOP_LAUNCH_FAILURE 14 BROKER_DESKTOP_NOT_ENTITLED 14 BROKER_DESKTOP_PROTOCOL_NOT_ SUPPORTED 14 BROKER_DESKTOP
View Integration BROKER_SVI_ATTACH_UDD_FAILED 17 BROKER_SVI_ATTACH_UDD_SUCCEEDED 17 BROKER_SVI_DETACH_UDD_FAILED 17 BROKER_SVI_DETACH_UDD_SUCCEEDED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ DISABLED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ EXPIRED 17 BROKER_USER_AUTHFAILED_ACCOUNT_ LOCKED_OUT 17 BROKER_USER_AUTHFAILED_ACCOUNT_ RESTRICTION 18 BROKER_USER_AUTHFAILED_BAD_USER_ PASSWORD 18 BROKER_USER_AUTHFAILED_GENERAL 18 BROKER_USER_AUTHFAILED_NO_LOGON_ SERVERS 18 BROKER_USER_AUTHFAILED_PASSWORD_ EXPIRED 18 BROKER_USER_A
Index information about alerts in SCOM 70 managed objects for SCOM 68 View performance data in SCOM 70 displaying help for View PowerCLI cmdlets 32 displaying information about 42 domain connectivity monitor 69 domains displaying information about users and groups 44 excluding from SCOM monitoring 70 E -flashThrottling parameter 39 FolderPath column 12 FrameworkServiceCheck monitor 68, 69 G Get-ComposerDomain cmdlet 34 Get-ConnectionBroker cmdlet 34 Get-DesktopPhysicalMachine cmdlet 34 Get-DesktopVM cmd
View Integration importing using vdmimport 63 modifying 60 LDAP Data Interchange Format (LDIF) 59 -ldapBackupFrequency parameter 39 LDIF files 59 LDIFDE command 64 licenses adding 46 displaying 46 linked-clone desktop pools creating 43 rebalancing 43 recomposing 43 refreshing 43 updating 43 listing, View PowerCLI cmdlets 32 loading, View PowerCLI cmdlets 32 logout delay period, setting global value for VMware View 46 logout warning message, setting global value for VMware View 46 LUNId column 12 M Machine
Index integrating with VMware View 65 performance monitor 68 restarting View component services 70 service component monitors 68 SCOM views and monitors 68 Secure Gateway Role Performance Data view 68 SecureGatewayCheck monitor 69 SecureGatewayServerServiceCheck monitor 69 SecurityServerId attribute 27 Send-LinkedCloneRebalance cmdlet 34 Send-LinkedCloneRecompose cmdlet 34 Send-LinkedCloneRefresh cmdlet 34 Send-SessionDisconnect cmdlet 34 Send-SessionLogoff cmdlet 34 Send-VMReset cmdlet 35 service componen
View Integration vCenter server connectivity monitor 69 vCenter servers adding to View Connection Server 42 changing ramp factor for 42 displaying for View Connection Server 42 displaying information about virtual machines configured on 45 removing from View Connection Server 42 vdmexport command 60 vdmimport command 63 View 9 View Administrator 9 View Administrator events 19 View Agent 9 View Agent events 19 View Composer 9 View Composer maintenance task types 41 View Connection Server 9 adding vCenter se