Project

GPOZaurr

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

Stars 1,250
Forks 119
Open issues 15
PowerShell Gallery downloads 421,558
Release v1.1.11
Language: PowerShell Updated: 2026-10-09
Command

Backup-GPOZaurr

Module GPOZaurr

Provides Backup functionality to Group Policies

Syntax

Backup-GPOZaurr [-BackupDated] [[-BackupPath] <String>] [[-ExcludeDomains] <String[]>] [[-ExtendedForestInformation] <IDictionary>] [[-Forest] <String>] [[-IncludeDomains] <String[]>] [[-LimitProcessing] <Int32>] [[-Type] <Empty|Unlinked|Disabled|All>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

EXAMPLE 1

$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All
$GPOSummary | Format-Table # only if you want to display output of backup

EXAMPLE 2

$GPOSummary = Backup-GPOZaurr -BackupPath "$Env:UserProfile\Desktop\GPO" -Verbose -Type All -BackupDated
$GPOSummary | Format-Table # only if you want to display output of backup

Parameters

-BackupDated SwitchParameter optional
Whether cmdlet should created Dated folders for executed backup or not. Keep in mind it's not nessecary and two backups made to same folder have their dates properly tagged
-BackupPath String optionalposition: 6
Path where to keep the backup
-ExcludeDomains String[] optionalposition: 3
Exclude domain from search, by default whole forest is scanned
-ExtendedForestInformation IDictionary optionalposition: 5
Ability to provide Forest Information from another command to speed up processing
-Forest String optionalposition: 2aliases: ForestName
Target different Forest, by default current forest is used
-IncludeDomains String[] optionalposition: 4aliases: Domain, Domains
Include only specific domains, by default whole forest is scanned
-LimitProcessing Int32 optionalposition: 0
Limits amount of GPOs that are backed up
-Type String[] optionalposition: 1
Provides a way to backup only Empty or Unlinked GPOs. The default is All.
Possible values: Empty, Unlinked, Disabled, All

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.