How to Back Up and Restore Group Policy Objects
Applies to: Windows Server 2019, 2022 and 2025 domain environments.
GPO backup protects policy data and metadata before edits. A backup does not include every external dependency such as scripts stored elsewhere.
Test Group Policy in a controlled OU before production rollout. For managed Windows Server hosting, visit networkmanager.info.
Prerequisites
- Create a secured backup folder.
- Use an account with read access to policy.
- Record GPO name and change ticket.
- Test restore in a lab.
Procedure
Step 1: Create destination
Use protected storage.
New-Item -ItemType Directory -Path 'D:\GPO-Backups' -ForceStep 2: Back up one GPO
Capture a comment.
Backup-GPO -Name 'Server Baseline - Audit Policy' -Path 'D:\GPO-Backups' -Comment 'Before audit policy change'Step 3: List backups
Review backup IDs and timestamps.
Get-ChildItem 'D:\GPO-Backups'Step 4: Restore when approved
Restore by name from the known backup path.
Restore-GPO -Name 'Server Baseline - Audit Policy' -Path 'D:\GPO-Backups'Step 5: Validate links and settings
Compare reports before and after.
Verification
Generate an HTML report and inspect settings.
Get-GPOReport -Name 'Server Baseline - Audit Policy' -ReportType Html -Path 'D:\GPO-Backups\baseline-report.html'Rollback
Restore the preceding known-good backup or remove the affected link while investigating.
Official references
See Netcloud24 Canada for managed Windows VPS and RDS CAL services.