Evotec

Project

GPOZaurr

GPOZaurr helps inspect, report on, and remediate Group Policy environments with PowerShell.

Stars 1,166
Forks 115
Open issues 16
PowerShell Gallery downloads 417,764
Release v1.1.9
Language: PowerShell Updated: 2026-04-11

API Reference

Function

Get-GPOZaurrInheritance

Namespace GPOZaurr

Retrieves inheritance information for Group Policy Objects (GPOs) within specified Organizational Units (OUs).

Remarks

This function retrieves and displays inheritance information for GPOs within specified OUs. It provides details on blocked inheritance, excluded objects, and group policies associated with blocked objects.

Examples

Authored help example

EXAMPLE 1

PS >


$Objects = Get-GPOZaurrInheritance -IncludeBlockedObjects -IncludeExcludedObjects -OnlyBlockedInheritance -Exclusions $ExcludedOU
$Objects | Format-Table
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Get-GPOZaurrInheritance [-ExcludeDomains <String[]>] [-Exclusions <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeBlockedObjects] [-IncludeDomains <String[]>] [-IncludeExcludedObjects] [-IncludeGroupPoliciesForBlockedObjects] [-OnlyBlockedInheritance] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomains String[] optionalposition: 2pipeline: False
Specifies the domain to exclude from the search. By default, the entire forest is scanned.
Exclusions String[] optionalposition: 0pipeline: False
Specifies the OUs approved by IT to be excluded. You can provide OUs by canonical name or distinguishedName.
ExtendedForestInformation IDictionary optionalposition: 4pipeline: False
Allows providing Forest Information from another command to speed up processing.
Forest String optionalposition: 1pipeline: Falsealiases: ForestName
Specifies the target forest. By default, the current forest is used.
IncludeBlockedObjects SwitchParameter optionalposition: namedpipeline: False
Specifies whether to include OUs with blocked inheritance. By default, this is disabled.
IncludeDomains String[] optionalposition: 3pipeline: Falsealiases: Domain, Domains
Specifies specific domains to include. By default, the entire forest is scanned.
IncludeExcludedObjects SwitchParameter optionalposition: namedpipeline: False
Specifies whether to show excluded objects. By default, this is disabled.
IncludeGroupPoliciesForBlockedObjects SwitchParameter optionalposition: namedpipeline: False
Specifies whether to include Group Policies for blocked objects. By default, this is disabled.
OnlyBlockedInheritance SwitchParameter optionalposition: namedpipeline: False
Specifies whether to show only OUs with blocked inheritance.