From bb18d488b4c27f5b2190c7156eece1b6d8699628 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 6 Aug 2021 11:36:22 +0200 Subject: [PATCH] Example improvements --- Examples/Example-50-RemoveLinkFromEmptyOU.ps1 | 9 ++++++++- Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) 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