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 Horizon 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.
2
3
On the General tab, in Startup type, select Automatic.
4
If you do not want the local system account to run the start session script, select This account, and enter the details of the account to run the start session script.
5
Click OK and exit the Services tool.
Configure a User Account to Run the Start Session Script
Optionally, you can change the user account under which the start session scripts run. Start session scripts run in the context of the VMware View Script Host service. By default, this service is configured to run as the SYSTEM user.
It is important to remember that start session scripts are run outside a desktop user session and not by the desktop user account. Information is sent directly from the client computer within a script running as the SYSTEM user.
Make sure that the path where you configure your start session scripts is accessible only to the SYSTEM account and to local administrators. (Set the ACL for the base key to be accessible to these accounts only.)
As a best practice, place the start session scripts in the following location:
View_Agent_install_path\scripts
For example: %ProgramFiles%\VMware\VMware View\Agent\scripts\sample.vbs
By default, this folder is accessible only by the SYSTEM and administrator accounts.