Configuring Registry Policies
When you create a session or preauthentication policy, you can check for the existence and value of registry entries on the user device. The session is established only if the particular entry exists or has the configured or higher value.
When configuring a registry expression, use the following guidelines:
Four backslashes are used to separate keys and subkeys, such as
Underscores are used to separate the subkey and the associated value name, such as
A backslash (\) is used to denote a space, such as in the following two examples:
HKEY_LOCAL_MACHINE\\\\SOFTWARE\\Citrix\\\\Secure\ Access\ Client_ProductVersion
CLIENT.REG(HKEY_LOCAL_MACHINE\\\\Software\\\\Symantec\\Norton\ AntiVirus_Version).VALUE == 126.96.36.199 -frequency 5
The following is a registry expression that looks for the Citrix Gateway plug-in registry key when users log on:
Note: If you are scanning for registry keys and values and you select Advanced Free-Form in the Expression dialog box, the expression must start with CLIENT.REG
Registry checks are supported under the following most common five types:
Registry values to be checked use the following types:
For the string value type, case-sensitivity is checked.
For DWORD type, the value is compared and must be equal.
Other types, such as Binary and Multi-String, are not supported.
Only the ‘==’ comparison operator is supported.
Other comparison operators, such as <, > and case-sensitive comparisons are not supported.
The total registry string length should be less than 256 bytes.
You can add a value to the expression. The value can be a software version, service pack version, or any other value that appears in the registry. If the data value in the registry does not match the value you are testing against, users are denied logon.
Note: You cannot scan for a value within a subkey. The scan must match the named value and the associated data value.
To configure a registry policy
- In the configuration utility, in the navigation pane, do one of the following:
- In the configuration utility, on the Configuration tab, in the navigation pane, expand Citrix Gateway > Policies and then click Session.
- In the configuration utility, on the Configuration tab, in the navigation pane, expand Citrix Gateway > Policies > Authentication/Authorization, and then click Pre-Authentication EPA.
- In the details pane, on the Policies tab, click Add.
- In Name, type a name for the policy.
- Next to Match Any Expression, click Add.
- In the Add Expression dialog box, in Expression Type, select Client Security.
- Configure the settings for the following:
- In Component, select Registry.
- In Name, type the name of the registry key.
- In Qualifier, leave blank or select Value.
- In Operator, do one of the following:
- If Qualifier is left blank, select EXISTS or NOTEXISTS
- If you selected Value in Qualifier, select either == or !==
- In Value, type the value as it appears in the registry editor, click OK and then click Close.