From 0c26642a72fe12eee7e0fe11ef7c9dc500019bc0 Mon Sep 17 00:00:00 2001 From: Przemyslaw Klys Date: Fri, 14 Aug 2020 23:00:54 +0200 Subject: [PATCH] Update example --- Examples/Example-36-FindBlockedInheritance.ps1 | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Examples/Example-36-FindBlockedInheritance.ps1 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