Variables usable in Workspace Control

The following Microsoft and Workspace Control variables can be used in Workspace Control when configuring managed applications, Execute Commands, Zones, and more:

  • clientipaddress — Terminal Service (TS) Client IP Address or Client IP Address (if not a remote session) on which a session was started;

  • CLIENTNAME — TS Client Name or Client Name (if not a remote session);

  • fullusername — Full name of the current user;

  • lcid — Language Code Identifier (LCID) that is used (User Context > Languages);

  • PFCACHEDUSERCONTEXT — Whether the cached user context is used;

    This variable shows the result of the option Use cached user context if latency to AD is above: x ms under Setup > Advanced Settings.

    Values: YES or NO

  • PFSESSIONIDMicrosoft Windows session ID;

  • PFSESSIONSTART — Local Date/Time start of the session;

  • PWRGATEPARMSpwrgate.exe parameters;


  • RESPF_SESSION_START — UTC Date/Time start of the session;

  • RESPFDIR — Installation folder;

  • RESSHELL — What shell is used;

    Values: PF or MS. PF is the Workspace Control Shell and MS is the Microsoft Windows Shell.

  • REVERTFD — Whether the session reverted to full desktop after closing the online/offline application;

    Value: Yes

  • TEMP%LOCALAPPDATA%\<sessionid>;

  • TMP%LOCALAPPDATA%\<sessionid>;

  • USERNAME — User name of the current user;

  • USERSID — SID of the current user.

Most of the variables are set by the Composer (pfwsmgr.exe) so they are only visible in applications started by Workspace Control.

The variables can be read using Process Explorer, by looking at the Environment tab of the properties of pfwsmgr.exe.