diff --git a/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 b/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 index e081dff..19de472 100644 --- a/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 +++ b/Examples/Example-50-RemoveLinkFromEmptyOU.ps1 @@ -1,3 +1,10 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Remove-GPOZaurrLinkEmptyOU -WhatIf -Verbose \ No newline at end of file +Remove-GPOZaurrLinkEmptyOU -Verbose -LimitProcessing 3 -WhatIf + +$Exclude = @( + "OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl" + "OU=Test \, OU,OU=ITR02,DC=ad,DC=evotec,DC=xyz" +) + +Remove-GPOZaurrLinkEmptyOU -Verbose -LimitProcessing 3 -WhatIf -ExcludeOrganizationalUnit $Exclude \ No newline at end of file diff --git a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 index 26647cf..d69f281 100644 --- a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 +++ b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 @@ -1,5 +1,5 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink | Format-Table +#Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink | Format-Table Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html \ No newline at end of file