Evotec

Project

GPOZaurr

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

Stars 1,166
Forks 115
Open issues 16
PowerShell Gallery downloads 417,764
Release v1.1.9
Language: PowerShell Updated: 2026-04-11

API Reference

Function

Get-GPOZaurrDuplicateObject

Namespace GPOZaurr

Retrieves duplicate Group Policy Objects (GPOs) within a specified forest.

Remarks

This function retrieves duplicate Group Policy Objects (GPOs) within a specified forest by comparing GPOs based on partial distinguished name matching.

Examples

Authored help example

EXAMPLE 1

PS >


Get-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "child1.contoso.com", "child2.contoso.com" -ExcludeDomains "child3.contoso.com" -ExtendedForestInformation $additionalInfo
        

Description ----------- Retrieves duplicate GPOs within the "contoso.com" forest, including domains "child1.contoso.com" and "child2.contoso.com" while excluding "child3.contoso.com". Additional forest information is provided for the search.

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.

Syntax

Get-GPOZaurrDuplicateObject [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomains String[] optionalposition: 1pipeline: False
Specifies an array of domain names to exclude from the search for duplicate GPOs.
ExtendedForestInformation IDictionary optionalposition: 3pipeline: False
Specifies additional information about the forest to aid in the search for duplicate GPOs.
Forest String optionalposition: 0pipeline: Falsealiases: ForestName
Specifies the name of the forest to search for duplicate GPOs.
IncludeDomains String[] optionalposition: 2pipeline: Falsealiases: Domain, Domains
Specifies an array of domain names to include in the search for duplicate GPOs.