Wrong error message for missing .adml files


Symptoms


SR Symptoms:

EN-US Domain Controller tries to create a settings report for a GPO. The Report is created with the message:

An appropriate resource file could not be found for file \\domainname.com\sysvol\domainname.com\Policies\PolicyDefinitions\anyfile.admx (error = 2): The system cannot find the file specified.

The .admx Files reported as missing are present in the specified folder.

Repro Symptoms:

Renaming the Folder Containing the appropriate .adml files returns the error:

An appropriate resource file could not be found for file \\domainname.com\sysvol\domainname.com\Policies\PolicyDefinitions\anyfile.admx (error = 3): The system cannot find the path specified.

This error also happens when the "EN-US" folder does not exist and is missing.

Editing the affected GPOs becomes impossible, reports are inaccurate. The problem does not happen in the same way when other language files and folders are missing as EN-US is the fallback language and it will be loaded instead when another language is missing.

Cause


In order to generate reports or edit the GPO the .admx file needs to be loaded aswell as the appropriate .adml language file. Depending on the native language user requesting the edit / reporting operation the .adml file is searched for in the appropriate language folder (en for en, de for de, etc). If for example the querying user wants english and the GPO central store only has the german .adml files installed such an error would occur.

The error reporting is incorrect since it is referring to the .admx file as missing, while this file is present at the specified location.

Resolution


Making the .adml files available for the language queried for in the correct folder solves the problem.

Please find a guide here:

929841 How to create a Central Store for Group Policy Administrative Templates in Window Vista
http://support.microsoft.com/default.aspx?scid=kb;EN-US;929841