mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-08-30 20:29:06 +00:00
Added or improved help on all functions.
This commit is contained in:
@@ -1,4 +1,33 @@
|
||||
function Remove-GPOZaurrDuplicateObject {
|
||||
<#
|
||||
.SYNOPSIS
|
||||
Removes duplicate Group Policy Objects (GPOs) identified by the Get-GPOZaurrDuplicateObject function.
|
||||
|
||||
.DESCRIPTION
|
||||
This function removes duplicate GPOs based on the criteria provided. It retrieves duplicate GPO objects using Get-GPOZaurrDuplicateObject and then attempts to remove them from the Active Directory.
|
||||
|
||||
.PARAMETER LimitProcessing
|
||||
Specifies the maximum number of duplicate GPOs to process. Default is set to [int32]::MaxValue.
|
||||
|
||||
.PARAMETER Forest
|
||||
Specifies the forest where the duplicate GPOs are located.
|
||||
|
||||
.PARAMETER ExcludeDomains
|
||||
Specifies an array of domains to exclude from the duplicate GPO removal process.
|
||||
|
||||
.PARAMETER IncludeDomains
|
||||
Specifies an array of domains to include in the duplicate GPO removal process.
|
||||
|
||||
.PARAMETER ExtendedForestInformation
|
||||
Specifies additional information about the forest.
|
||||
|
||||
.EXAMPLE
|
||||
Remove-GPOZaurrDuplicateObject -Forest "contoso.com" -IncludeDomains "domain1.com", "domain2.com" -ExcludeDomains "domain3.com" -LimitProcessing 5
|
||||
|
||||
Description:
|
||||
Removes duplicate GPOs from the forest "contoso.com" for domains "domain1.com" and "domain2.com", excluding "domain3.com", processing only the first 5 duplicates.
|
||||
|
||||
#>
|
||||
[cmdletBinding(SupportsShouldProcess)]
|
||||
param(
|
||||
[int] $LimitProcessing = [int32]::MaxValue,
|
||||
|
||||
Reference in New Issue
Block a user