/AD_GPO_Backup

PowerShell tool to backup AD Group Policy Objects (GPO) by selecting Organisational Unit (OU)

Primary LanguagePowerShell

AD GPO Backup

gpo_backup_tool_r1 1

When editing Group Policy Objects (GPO) you should always be aware of taking backups before changing anything. But from time to time you need to backup multiple GPO. Sometimes you need to backup all GPOs that are linked to a Organizational Unit and all units below. There is no GUI tool from Microsoft supporting this case, therefore I’ve built a small PowerShell script that will support you. The script is easy to handle. Just start it and select the OU your policies are linked to. The script will start backup of your linked GPOs (recursively). I’ve used the “Active Directory OU picker” from MicaH’s IT blog for easy OU selection.

Installation

Download the latest Release and unzip the content to a folder. Start the script by running

.\AD_Backup_GPO.ps1

Usage

The script will automatically check if all requirements are met.

image

Select the OU you like to Backup. The script will also backup all linked group policy opjects beneath your selection when selecting "Auto Select Sub OU" (default). If not selected only group policy objects linked to the selected OU will be part of the backup. When selecting "ZIP Backup" (default) the backup will be compressed as zip file.

image

A summary will be shown when everything is done.

image

Your backup will be located in AD_GPO_Backup\01_GPO_Backups\

image

License

MIT