Schedule GPO Backup


A domain containing many GPO’s can become rather complex. Properly designed it still can be manageble, but reproducing it is a different story. Nonetheless there’s no easy backup mechanism for your group policies. Or is there?

When Group Policy Management Console (GPMC) is installed on Windows 2003, you will find some useful scripts in the folder %programfiles%\GPMC.                For Windows 2008 the scripts must be downloaded (I wonder why). After install, the scripts are located in %ProgramFiles(x86)%\Microsoft Group Policy\GPMC Sample Scripts.

Download scripts for Windows 2008: GPMCSampleScripts.msi          In my opinion the best script is BackupAllGPOs.wsf. This script backups all GPO’s in the domain. The syntax for backup to the folder D:\Backups\GPO is:

cscript.exe BackupAllGPOs.wsf D:\Backups\GPO

Running this command as a scheduled task is an easy way for a daily GPO backup.        TIP: Use the scripts RestoreGPO.wsf or RestoreAllGPOs.wsf to restore or use GPMC.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: