Wednesday, June 9, 2010

Administrative Templates

Administrative templates, (.ADM files before Windows Vista; .ADMX files after Windows Vista), facilitate registry-based Group Policy. These settings appear under the Administrative Templates folder for both user configuration and computer configuration in the console tree of the Group Policy Object Editor and in HTML reports produced by GPMC.
.ADM and .ADMX files are not the actual settings deployed to client operating systems.
 Instead, it is a template file used to populate the administrative interface (GPEdit). 
On Windows XP and Windows Server 2003, each registry setting specifies a "Supported on"
tag that indicates which operating system versions support that policy setting. If a setting is specified and deployed to a client operating system that does not support that setting, the settings are ignored.
.ADM files are stored in two locations by default: inside GPOs (in Sysvol)
and in the %windir%\inf folder on the local computer.
.ADMX (XML-based settings files) and .ADML (XML-based localized language strings) are also stored in two locations: when created on SYSVOL, in the CENTRAL STORE; in the %windir%\PolicyDefinitions folder on the Windows Vista local computer.
Windows includes a predefined set of Administrative template files that define the registry settings that can be configured in a Group Policy object (GPO). The .ADM files can be added or removed from the Group Policy Object Editor by right-clickingAdministrative Templates and clicking Add/Remove Templates. Adding or removing .ADM files does not affect which policies are processed by the Group Policy engine. It only affects whether a specific Administrative Template policy setting is displayed in the Group Policy Object Editor. For example, if you removed all the .ADM files from the GPO via the Add/Remove Templatesdialog box, no Administrative Template policy settings would be displayed under the Administrative Templates node. This will not affect the policies already stored in the Registry.pol file.

Contents of .adm files

An .ADM file consists of a hierarchy of categories and subcategories that together define how the policy settings are to appear in the Group Policy Object Editor user interface (UI), and also contains information about which registry locations control the settings.
The following information is included in .ADM files:
  • Registry locations that correspond to each setting in the Administrative Templates section of the Group Policy Object Editor.
  • Options or restrictions in values that are associated with each setting. These are only restrictions for the user interface. There is no checking of value ranges during the actual policy processing.
  • Check box, editbox, and other methods of parameter input.
  • For many settings, a default value to display.
  • Explanations of what each setting does, and about settings that affect and are affected by it, is included in Help text embedded in the .adm file. This information is displayed on an Explain tab in Group Policy Object Editor.
  • The versions of Windows that support each setting are indicated by use of the Suppported keyword.
  • Registry location for the setting, hive name, key name, and value name. Type of registry key, whether DWORD, REG_SZ, or other type. Binary data is not supported.


A valid ADM file must have the following keywords:
  • Class - either MACHINE or USER
  • Category - Defines organizational structure of ADM and where it will be displayed in the GPEdit window.
  • Policy - Groups definitions into one node and configuration screen of the GPEdit tree
Optional keywords used include:
  • Keyname - used to define what registry key will be affected

Managing ADM files

By default, ADM files are stored in each GPO, within Sysvol on domain controllers. This creates a simple and effective model for replicating ADM files across domain controllers (which is handled by the File Replication Service).
However, in some instances this can cause operational issues.
 To this end, various policy settings are available to manage the manner in which ADM files are read and stored.

No comments:

Post a Comment