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