diff --git a/Examples/Example-36-FindBlockedInheritance.ps1 b/Examples/Example-36-FindBlockedInheritance.ps1 new file mode 100644 index 0000000..89c9534 --- /dev/null +++ b/Examples/Example-36-FindBlockedInheritance.ps1 @@ -0,0 +1,10 @@ +Import-Module "$PSScriptRoot\..\GPoZaurr.psd1" -Force + +# Get basic output DN, CanonicalName, BlockInheritance (True/False) +#$Objects = Get-GPOZaurrInheritance +#$Objects | Format-Table + +# 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 +$Objects | Format-Table \ No newline at end of file