Microsoft KB Archive/929397

= Group Policy settings are not imported when you use the CreateEnvironmentFromXML.wsf script to import Group Policy settings to an Active Directory domain =

Article ID: 929397

Article Last Modified on 10/11/2007

-

APPLIES TO


 * Microsoft Windows Server 2003, Datacenter Edition (32-bit x86)
 * Microsoft Windows Server 2003, Enterprise Edition
 * Microsoft Windows Server 2003, Standard Edition (32-bit x86)
 * Microsoft Windows Server 2003, Web Edition
 * Microsoft Windows Server 2003, Datacenter Edition for Itanium-Based Systems
 * Microsoft Windows Server 2003, Datacenter x64 Edition
 * Microsoft Windows Server 2003, Enterprise Edition for Itanium-based Systems
 * Microsoft Windows Server 2003, Enterprise x64 Edition
 * Microsoft Windows Server 2003, Standard x64 Edition
 * Microsoft Windows XP Professional

-



SYMPTOMS
Consider the following scenario:
 * You use the Group Policy Management Console (GPMC) CreateXMLFromEnvironment.wsf script to export Group Policy objects, Group Policy settings, and Group Policy links from an Active Directory directory service domain.
 * You use the GPMC CreateEnvironmentFromXML.wsf script to import the Group Policy objects, Group Policy settings, and Group Policy links into another Active Directory domain.

In this scenario, you experience the following symptoms:  When you run the cscript CreateXMLFromEnvironment command, results that resemble the following are generated:

Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.


 * No template path was specified, so GPO settings will not be included. ***

=
====================================== Processing Environment Output XML:    example.xml Domain:        example.com DC:            .example.com

=
======================================

Processing domain example Processing OU Domain Controllers Processing OU  Processing GPO Default Domain Policy Processing GPO 

Done. Saved XML to example.xml.

 When you run the cscript CreateEnvironmentFromXML command, Group Policy objects and Group Policy links from the .xml file are imported into the destination domain as expected. However, no Group Policy settings from the source domain are imported into the destination domain.



CAUSE
This issue occurs if you do not specify the /TemplatePath switch when you use the CreateXMLFromEnvironment.wsf script. Also, when you use this switch, you must specify the argument as an absolute path and not as a relative path. For example, you must specify a path such as C:\XMLbackup.



RESOLUTION
To resolve this issue, specify the /TemplatePath switch together with an absolute path when you use the CreateXMLFromEnvironment.wsf script. For more information about how to use the CreateXMLFromEnvironment.wsf script, search on &quot;CreateXMLFromEnvironment&quot; in the GPMC.chm file that is included with the GPMC program. By default, the GPMC.chm file is located in the following folder:

%ProgramFiles%\GPMC\Scripts



MORE INFORMATION
Currently, the GPMC.chm file does not mention that you must use the /TemplatePath switch when you use the CreateXMLFromEnvironment.wsf script to export Group Policy settings to an .xml file. Additionally, the following issues exist in the &quot;Creating an XML File that Represents a Policy Environment&quot; topic of this .chm file:
 * The first two examples that are displayed in this topic do not use the /TemplatePath switch. This incorrectly indicates that the /TemplatePath switch is not required.
 * The third example that is displayed in this topic uses the /TemplatePath switch. However, the path that is specified as the argument of this switch is a relative path and not an absolute path. Therefore, if the folder that is specified in the relative path has already been created, the cscript CreateEnvironmentFromXML command does not work correctly. You must use an absolute path as the argument of the /TemplatePath switch.

To obtain the GPMC, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=0A6D4C24-8CBD-4B35-9272-DD3CBFC81887

Keywords: kberrmsg kbtshoot kbprb KB929397

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.