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

Repair-GPOZaurrBrokenLink

Module GPOZaurr

Removes any link to GPO that no longer exists.

Syntax

Description

Removes any link to GPO that no longer exists. It scans all site, organizational unit or domain root making sure every single link that may be linking to GPO that doesn't exists anymore is gone.

Examples

Authored help example

EXAMPLE 1

Repair-GPOZaurrBrokenLink -Verbose -LimitProcessing 1 -WhatIf

EXAMPLE 2

Repair-GPOZaurrBrokenLink -Verbose -IncludeDomains ad.evotec.pl -LimitProcessing 1 -WhatIf

Parameters

-ExcludeDomains String[] optionalposition: 1
Exclude domain from search, by default whole forest is scanned
-ExtendedForestInformation IDictionary optionalposition: 3
Ability to provide Forest Information from another command to speed up processing
-Forest String optionalposition: 0aliases: ForestName
Target different Forest, by default current forest is used
-IncludeDomains String[] optionalposition: 2aliases: Domain, Domains
Include only specific domains, by default whole forest is scanned
-LimitProcessing Int32 optionalposition: 4
Allows to specify maximum number of items that will be fixed in a single run. It doesn't affect amount of GPOs processed

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.