diff --git a/Examples/Example-36-FindBlockedInheritance.ps1 b/Examples/Example-36-FindBlockedInheritance.ps1 index 89c9534..f878633 100644 --- a/Examples/Example-36-FindBlockedInheritance.ps1 +++ b/Examples/Example-36-FindBlockedInheritance.ps1 @@ -6,5 +6,10 @@ # Get same output DN, CanonicalName, BlockInheritance (True/False) + Users/Computers + UsersCount/ComputerCount for those with Blocked Inhertiance # This is so you can have a list what machines are affected -$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -OnlyBlockedInheritance +$ExcludedOU = @( + # Works on OU/ + 'ad.evotec.xyz/ITR02/Test' +) + +$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU -IncludeGroupPoliciesForBlockedObjects $Objects | Format-Table \ No newline at end of file diff --git a/Examples/Example-40-ShowGPO01.ps1 b/Examples/Example-40-ShowGPO01.ps1 index 173b4e1..70d8b79 100644 --- a/Examples/Example-40-ShowGPO01.ps1 +++ b/Examples/Example-40-ShowGPO01.ps1 @@ -1,4 +1,4 @@ Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force #$Output = Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -PassThru -Type GPOConsistency, GPOList, GPODuplicates, GPOBroken, GPOOwners, NetLogonOwners, GPOPermissionsRead, GPOPermissionsAdministrative,GPOPermissionsUnknown -Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html #-Type GPOList -Online \ No newline at end of file +Invoke-GPOZaurr -FilePath $PSScriptRoot\Reports\GPOZaurr.html -Type GPOBlockedInheritance -Online \ No newline at end of file