Configuring Remote Desktop Features

Table Of Contents
Running Commands on Horizon Desktops
You can use the Horizon Agent CommandsToRunOnConnect, CommandsToRunOnReconnect, and
CommandsToRunOnDisconnect group policy seings to run commands and command scripts on Horizon
desktops when users connect, reconnect, and disconnect.
To run a command or a command script, add the command name or the le path of the script to the group
policy seing's list of commands. For example:
date
C:\Scripts\myscript.cmd
To run scripts that require console access, prepend the -C or -c option followed by a space. For example:
-c C:\Scripts\Cli_clip.cmd
-C e:\procexp.exe
Supported le types include .CMD, .BAT, and .EXE. .VBS les will not run unless they are parsed with
cscript.exe or wscript.exe. For example:
-C C:\WINDOWS\system32\wscript.exe C:\Scripts\checking.vbs
The total length of the string, including the -C or -c option, should not exceed 260 characters.
PCoIP Policy Settings
The PCoIP ADMX template le contains policy seings related to the PCoIP display protocol. The ADMX
template le is named (pcoip.admx). You can congure seings to default values that can be overridden by
an administrator, or you can congure seings to non-overridable values.
The ADMX les are available in a bundled .zip le named VMware-Horizon-Extras-Bundle-x.x.x-
yyyyyyy.zip, which you can download from the VMware download site at
hps://my.vmware.com/web/vmware/downloads. Under Desktop & End-User Computing, select the
VMware Horizon 7 download, which includes the bundled .zip le.
The PCoIP Session Variables ADMX template le contains two subcategories:
Overridable
Administrator Defaults
Species PCoIP policy seing default values. These seings can be
overridden by an administrator. These seings write registry keys values to
HKLM\Software\Policies\Teradici\PCoIP\pcoip_admin_defaults. All of these
seings are in the Computer  > Policies > Administrative
Templates > PCoIP Session Variables > Overridable Administrator
Defaults folder in the Group Policy Management Editor.
Not Overridable
Administrator Settings
Contains the same seings as Overridable Administrator Defaults, but these
seings cannot be overridden by an administrator. These seings write
registry key values to HKLM\Software\Policies\Teradici\PCoIP\pcoip_admin.
All of these seings are in the User  > Policies >
Administrative Templates > PCoIP Session Variables > Not Overridable
Administrator  folder in the Group Policy Management Editor.
The template contains both Computer Conguration and User Conguration seings.
Configuring Remote Desktop Features in Horizon 7
110 VMware, Inc.