mirror of
https://github.com/EvotecIT/GPOZaurr.git
synced 2026-07-26 11:49:17 +00:00
15 lines
657 B
PowerShell
15 lines
657 B
PowerShell
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
|
|
$ExcludedOU = @(
|
|
# Works on OU/
|
|
'ad.evotec.xyz/ITR02/Test'
|
|
)
|
|
|
|
$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU -IncludeGroupPoliciesForBlockedObjects
|
|
$Objects | Format-Table |