Integration

Table Of Contents
Add Windows Registry Entries for a Start Session Script
You must add Windows registry entries on each View desktop virtual machine where you want View to run
a start session script.
Prerequisites
n
Verify that the path where you configured your start session scripts is accessible only to the SYSTEM
account and local administrators. For more information, see “Making Start Session Scripts Accessible,”
on page 82.
n
Make sure your start session scripts run quickly. If you set the WaitScriptsOnStartSession value in the
Windows registry, your start session script must finish running before View Agent can respond to the
StartSession message that View Connection Server sends. For more information, see “Managing Start
Session Timeouts,” on page 82.
Procedure
1 Log in to the View desktop virtual machine.
2 At the command prompt, type regedit to start the Windows Registry Editor.
3 In the registry, navigate to HKLM\SOFTWARE\VMware, Inc.\VMware VDM\ScriptEvents.
4 Add the path to the start session script to the registry.
a In the navigation area, right-click ScriptEvents, select New > Key, and create a key named
StartSession.
b In the navigation area, right-click StartSession, select New > String Value, and create a string
value that identifies the start session script to run, for example, SampleScript.
To run more than one start session script, create a string value entry for each script under the
StartSession key. You cannot specify the order in which these scripts run. If the scripts must run
in a particular order, invoke them from a single control script.
c In the topic area, right-click the entry for the new string value and select Modify.
d In the Value data text box, type the command line that invokes the start session script and click
OK.
Type the full path of the start session script and any files that it requires.
5 Add and enable a start session value in the registry.
a Navigate to HKLM\SOFTWARE\VMware, Inc.\VMware VDM\Agent\Configuration.
b (Optional) If the Configuration key does not exist, right-click Agent, select New > Key, and create
the key.
c In the navigation area, right-click Configuration, select New > DWORD (32 bit) Value, and type
RunScriptsOnStartSession.
d In the topic area, right-click the entry for the new DWORD value and select Modify.
Chapter 7 Setting Desktop Policies with Start Session Scripts
VMware, Inc. 83