Added or improved help on all functions.

This commit is contained in:
neztach
2024-07-05 13:00:03 -05:00
parent bd103a513b
commit 92f3fcb692
97 changed files with 3074 additions and 35 deletions
+29
View File
@@ -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,