# Get-GPOZaurrDuplicateObject

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

Project

GPOZaurr

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

[View on GitHub](https://github.com/EvotecIT/GPOZaurr) [Visit Website](#) [Releases](https://github.com/EvotecIT/GPOZaurr/releases/tag/v1.1.10) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/GPOZaurr/1.1.9)

Stars **1,257**

Forks **121**

Open issues **15**

PowerShell Gallery downloads **421,558**

Release **v1.1.11**

Language: PowerShell Updated: 2026-10-30

Command 

**Module**

`GPOZaurr`

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

## Syntax

```
Get-GPOZaurrDuplicateObject
[[-ExcludeDomains] <String[]>]
[[-ExtendedForestInformation] <IDictionary>]
[[-Forest] <String>]
[[-IncludeDomains] <String[]>]
[<CommonParameters>]
```

[#](#method-get-gpozaurrduplicateobject-string-idictionary-string-string)

Parameter set: `All Parameter Sets`

## Description

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

## Examples

### Example 1

```powershell
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.

## Parameters

**-ExcludeDomains String[] optionalposition: 1**

Specifies an array of domain names to exclude from the search for duplicate GPOs.

**-ExtendedForestInformation IDictionary optionalposition: 3**

Specifies additional information about the forest to aid in the search for duplicate GPOs.

**-Forest String optionalposition: 0aliases: ForestName**

Specifies the name of the forest to search for duplicate GPOs.

**-IncludeDomains String[] optionalposition: 2aliases: Domain, Domains**

Specifies an array of domain names to include in the search for duplicate GPOs.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:ACA698CAF1286810F5D8C1E88D2C3BBE1734AEC781BE517298274E4F10D530A1 -->
