From 92fcb80005ef94ddce7e47bb148f8ec738b967c7 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 22 Oct 2021 12:17:16 +0200 Subject: [PATCH] Update example --- Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 index f191faa..611412f 100644 --- a/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 +++ b/Examples/Example-51-FindEmptyOUsWithGPOLinks.ps1 @@ -1,5 +1,9 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +$OUs = Get-GPOZaurrOrganizationalUnit +$Ous | Format-Table + Get-GPOZaurrOrganizationalUnit -Verbose -Option Unlink -Exclusions @( 'OU=Groups,OU=Production,DC=ad,DC=evotec,DC=pl' ) | Format-Table @@ -8,9 +12,6 @@ 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' + #'*OU=Production,DC=ad,DC=evotec,DC=pl' ) \ No newline at end of file