Comprehensive GPO Backup Script

Obtaining a comprehensive, automated backup of your domain Group Policy Objects has always been a challenge.

First, we had the GPMC WSFs (Windows Script Files) and then the glory of PowerShell and the Backup-GPO cmdlet. However, like a single chunk of chocolate, they were never quite enough… so I wrote a sample script to obtain a comprehensive group policy backup. What's more, there's a companion script for performing an import of the backup to a test environment.


A full write-up for each script can be found on the 'Hey, Scripting Guy! Blog':

Using PowerShell to Back Up Group Policy Objects

Use PowerShell to Import Group Policy Objects


The scripts can be found on the TechNet Script Repository:

Comprehensive Group Policy Backup Script

Comprehensive Group Policy Import Script


Comments (3)

  1. Mauro Rita says:

    Keep up ! These scripts are awesome stuff !

  2. Anonymous says:

    Quickly mirror your OU structure to a test environment with PowerShell.

  3. anonymouscommenter says:

    A host of reference material for AD and Group Policy