From 0dc56d314ed4a26264aa4aa29cb22eb2f1c5c799 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Tue, 10 Aug 2021 16:11:17 +0200 Subject: [PATCH] Example improvement --- Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 index d69f281..6c6c7ac 100644 --- a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 +++ b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 @@ -1,5 +1,16 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force -#Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink | Format-Table +#Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @( +# 'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl' +#) | Format-Table -Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html \ No newline at end of file +#Get-GPOZaurrOrganizationalUnit -Verbose -ExcludeOrganizationalUnit @( +# '*,OU=Production,DC=ad,DC=evotec,DC=pl' +#) | Format-Table + + +Invoke-GPOZaurr -Type GPOOrganizationalUnit -Online -FilePath $PSScriptRoot\Reports\GPOZaurrOU.html -Exclusions @( + '*OU=Production,DC=ad,DC=evotec,DC=pl' + '*OU=Production,DC=ad,DC=evotec,DC=pl' + '*OU=Production,DC=ad,DC=evotec,DC=pl' +) \ No newline at end of file