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-GPOZaurrOrganizationalUnit

Namespace GPOZaurr

Retrieves information about Group Policy Objects (GPOs) linked to Organizational Units (OUs) within a specified forest.

Remarks

This function retrieves detailed information about the GPOs linked to OUs within a specified forest. It provides information on linked GPOs, objects within OUs, and counts of objects at different levels.

Examples

Authored help example

EXAMPLE 1

PS >


Get-GPOZaurrOrganizationalUnit -Forest "contoso.com" -IncludeDomains "child.contoso.com" -ExcludeDomains "test.contoso.com" -ExtendedForestInformation $ExtendedInfo -Option "OK" -ExcludeOrganizationalUnit "OU=Test,DC=contoso,DC=com"
Retrieves information about GPOs linked to OUs in the "contoso.com" forest, including the "child.contoso.com" domain, excluding the "test.contoso.com" domain, with additional forest information, performing the 'OK' action, and excluding the "OU=Test,DC=contoso,DC=com" OU.
        

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-GPOZaurrOrganizationalUnit [-ExcludeDomains <String[]>] [-ExcludeOrganizationalUnit <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-IncludeDomains <String[]>] [-Option <OK|Unlink|Delete>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

ExcludeDomains String[] optionalposition: 1pipeline: False
Specifies an array of domains to exclude from processing.
ExcludeOrganizationalUnit String[] optionalposition: 5pipeline: Falsealiases: ExcludeOU, Exclusions
Specifies an array of OUs to exclude from processing.
ExtendedForestInformation IDictionary optionalposition: 3pipeline: False
Specifies additional information about the forest.
Forest String optionalposition: 0pipeline: Falsealiases: ForestName
Specifies the name of the forest to retrieve information from.
IncludeDomains String[] optionalposition: 2pipeline: Falsealiases: Domain, Domains
Specifies an array of domains to include for processing.
Option String[] optionalposition: 4pipeline: Falsevalues: 3
Specifies the action to perform on the retrieved data. Valid values are 'OK', 'Unlink', or 'Delete'.
Possible values: OK, Unlink, Delete