PowerShell Tool – Backup Group Policy Objects (GPO) linked to Oranizational Units (OU)
When editing Group Policy Objects you should always be aware of taking backups before changing anything. But from time to time you need to backup not just one GPO. This could be easyly managed by MS standard tools. Sometimes you need to backup all GPOs that are linked to a Organizational Unit. 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.
Download
This is the first release. Be carefull when using it in productive environments.
Always test before using in production!
[Update 02.06.2021] Download is now also available on Github.
Repository: https://github.com/beneckecloud/AD_GPO_Backup/
Download
All Releases
Github repository: https://github.com/beneckecloud/AD_GPO_Backup
Version 1.1
Recursive Backup (include/exclude sub OU)
Zip Backup
Download available on Github
Version 1.0
Initial Release from March 10, 2019
How to use
Select the OU you like to Backup. The script will also Backup all linked gpo beneath your selection.
In this example all GPO beneath “Computers” will be covered.