An error has occurred while collecting data for Administrative Templates

Author: NetworkAdminKB.com
Created: 2009-12-17
Modified: 2010-02-06


Issue:

After creating a custom Administrative Template (ADM) file you receive the following error when viewing configured settings in the Group Policy Management Setting tab

 

An error has occurred while collecting data for Administrative Templates.

 

The following errors were encountered:

The .adm file "\\dc01.domain.com\sysvol\domain.com\Policies\{123A30AA-1233-1230-123A-12376B6DBB2E}\adm\Custom.adm" is not in a valid format and must be replaced. Details: A string is expected at line 29.

  

  

Cause:

Certain VALUES must have static strings assigned to them and not use the [stings] substitution values like !!Name.

 

Solution:

Convert all string substitutions for VALUES to static strings.

 

Example:

The string after the key word “VALUE” must be a static string a not a substitution string (i.e.: !!Name01)

 

CLASS USER

CATEGORY "Test”

    POLICY "Test"

      KEYNAME "Software\Test"

      PART Default DROPDOWNLIST NOSORT

        VALUENAME ""

        ITEMLIST

          NAME !!Name01 VALUE “Value 1”

          NAME !!Name02 VALUE “Value 2”

          NAME !!Name03 VALUE “Value 3”

        END ITEMLIST

      END PART

    END POLICY

END CATEGORY

[strings]

Name01="Name 1"

Name02="Name 1"

Name03="Name 1"

 

 

More Information:

This does not affect how the policy is processed, only how GPMC reports.

Article ID: 232, Created On: 9/18/2011, Modified: 9/18/2011