You use string variables in an .adm file if you want to use variables to define text strings for the user interface. This is useful if the strings are lengthy and are used in several locations throughout the .adm file. This method also allows easier conversion to other languages (localization).
You can use string variables for CATEGORY, POLICY, PART, and DEFAULT. Assign the variable name to the component by preceding it with two exclamation points (!!). Then, in the [strings] section of the file, link the variable with the actual string to be used in the user interface. The string must be enclosed in quotation marks.
component !!variable
where component is CATEGORY, POLICY, PART, or DEFAULT, and variable is the variable you want to use for a given string.
Optionally, you can enclose a variable name in double quotation marks ("). Names with spaces must be enclosed by double quotation marks.
In the [strings] section of the file, you define the variable as follows:
variable = "string"
Suppose you want to use the following category name several places throughout your user interface:
My First Category
You could assign the following variable to this string:
FirstCategory
You would use the following
CATEGORY !!FirstCategory
Then, in the [strings] section, you would define the FirstCategory variable:
FirstCategory="My First Category"
Result: The My First Category string would be displayed without quotation marks in the Group Policy user interface.