Project

GPOZaurr

GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.

Stars1166
Forks115
Open issues16
PowerShell Gallery downloads417764
Releasev1.1.9
Language: PowerShell Updated: 2026-04-11T08:14:05.0000000+00:00

Curated Examples

Back up disabled or empty GPOs

Back up selected Group Policy Objects and verify the resulting backup set.

This example shows a practical starting point for cleaning up or reviewing older Group Policy environments before deeper remediation work.

It comes from the source example at Examples/Example-01-BackupGPOs.ps1.

When to use this pattern

  • You want to back up stale or disabled GPOs before any cleanup work.
  • You need a quick inventory of what was actually exported.
  • You want a repeatable backup step before broader Group Policy review.

Example

Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force

$GPOSummary = Backup-GPOZaurr `
    -BackupPath "$Env:UserProfile\Desktop\GPO" `
    -Verbose `
    -Type Disabled, Empty `
    -IncludeDomains 'corp.example.com'

$GPOSummary | Format-Table -AutoSize

if ($GPOSummary) {
    Get-GPOZaurrBackupInformation -BackupFolder $GPOSummary[0].BackupDirectory | Format-Table -AutoSize
}

What this demonstrates

  • targeted GPO backup instead of exporting everything blindly
  • focusing on disabled or empty policies first
  • validating the produced backup set after the export

Source