'//////////////////////////////////////////////////////////////////////////// '// Copyright (c) Microsoft Corporation. All rights reserved '// '// Title: ImportGPO.wsf '// Author: mtreit@microsoft.com '// Created: 1/7/2002 '// '// Purpose: Takes a backed-up GPO and imports the settings from the '// backup into a specified target GPO. If no target is '// specified, then the name of the GPO that was backed up '// will be used. In that case, if a GPO with that name exists '// it will be imported into - otherwise a new GPO will be '// created. '// Revision: Ported from JScript->VBScript by dtsaltas (October 24, 2002) ,// Revision: Fixed check for Null Migration Table by JudithH (September 17, 2007) '// Revision: Added note to not use this script for restoring delegation information. '// '//////////////////////////////////////////////////////////////////////////// '/////////////////////////////////////// '// Initialization '/////////////////////////////////////// ' Include necessary libraries Takes a backed-up GPO and imports the settings from the backup into a specified target GPO. If no target is specified, then the name of the GPO that was backed up will be used. In that case, if a GPO with that name exists, it will be imported into. Otherwise, a new GPO will be created. Importing a GPO doesn't restore delegation information. To restore delegation information in a GPO use the RestoreGPO.wsf script. Example: ImportGPO.wsf c:\GPO-Backups TestGPO TargetGPO /CreateIfNeeded