API Reference
Function
Clear-GPOZaurrSysvolDFSR
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
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 SetsParameters
- ExcludeDomainControllers String[]
- Specifies an array of domain controllers to exclude from the cleanup process.
- ExcludeDomains String[]
- Specifies an array of domains to exclude from the cleanup process.
- ExtendedForestInformation IDictionary
- Specifies additional forest information if needed.
- Forest String
- Specifies the forest name where the GPOs are located.
- IncludeDomainControllers String[]
- Specifies an array of domain controllers to include in the cleanup process.
- IncludeDomains String[]
- Specifies an array of domains to include in the cleanup process.
- LimitProcessing Int32
- Specifies the maximum number of GPOs to process.
- SkipRODC SwitchParameter
- Indicates whether Read-Only Domain Controllers (RODCs) should be skipped during cleanup.