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

Clear-GPOZaurrSysvolDFSR

Namespace GPOZaurr

Clears the ConflictAndDeleted folder in DFSR for specified GPOs.

Remarks

This function clears the ConflictAndDeleted folder in DFSR for specified Group Policy Objects (GPOs) within a given forest. It allows excluding specific domains and domain controllers if needed.

Examples

Authored help example

EXAMPLE 1

PS >


Clear-GPOZaurrSysvolDFSR -Forest "contoso.com" -IncludeDomains "child.contoso.com" -ExcludeDomainControllers "dc1.contoso.com" -SkipRODC
Clears the ConflictAndDeleted folder in DFSR for GPOs in the "contoso.com" forest, including only the "child.contoso.com" domain and excluding the "dc1.contoso.com" domain controller.
        

EXAMPLE 2

PS >


Clear-GPOZaurrSysvolDFSR -Forest "contoso.com" -IncludeDomains "child.contoso.com" -LimitProcessing 5
Clears the ConflictAndDeleted folder in DFSR for GPOs in the "contoso.com" forest, including only the "child.contoso.com" domain, and processes a maximum of 5 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.

Syntax

Clear-GPOZaurrSysvolDFSR [-ExcludeDomainControllers <String[]>] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomainControllers <String[]>] [-IncludeDomains <String[]>] [-LimitProcessing <Int32>] [-SkipRODC] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomainControllers String[] optionalposition: 2pipeline: False
Specifies an array of domain controllers to exclude from the cleanup process.
ExcludeDomains String[] optionalposition: 1pipeline: False
Specifies an array of domains to exclude from the cleanup process.
ExtendedForestInformation IDictionary optionalposition: 5pipeline: False
Specifies additional forest information if needed.
Forest String optionalposition: 0pipeline: Falsealiases: ForestName
Specifies the forest name where the GPOs are located.
IncludeDomainControllers String[] optionalposition: 4pipeline: Falsealiases: DomainControllers
Specifies an array of domain controllers to include in the cleanup process.
IncludeDomains String[] optionalposition: 3pipeline: Falsealiases: Domain, Domains
Specifies an array of domains to include in the cleanup process.
LimitProcessing Int32 optionalposition: 6pipeline: False
Specifies the maximum number of GPOs to process.
SkipRODC SwitchParameter optionalposition: namedpipeline: False
Indicates whether Read-Only Domain Controllers (RODCs) should be skipped during cleanup.