Project

GPOZaurr

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

Stars 1,250
Forks 119
Open issues 15
PowerShell Gallery downloads 421,558
Release v1.1.11
Language: PowerShell Updated: 2026-10-09
Command

Get-GPOZaurrLink

Module GPOZaurr
Inputs
ADObject[]

Retrieves Group Policy Object (GPO) links based on specified criteria.

Syntax

Description

This function retrieves GPO links based on various parameters such as ADObject, Filter, Linked, Site, etc. It provides flexibility in searching for GPO links within Active Directory.

Examples

Authored help example

EXAMPLE 1

Get-GPOZaurrLink -ADObject $ADObject -Linked 'All'

Description ----------- Retrieves all linked GPOZaurr links for the specified Active Directory object(s).

EXAMPLE 2

Get-GPOZaurrLink -Filter "(objectClass -eq 'organizationalUnit')" -SearchBase 'CN=Configuration,DC=ad,DC=evotec,DC=xyz'

Description ----------- Retrieves GPOZaurr links based on the specified filter and search base.

Parameters

-AsHashTable SwitchParameter optional
Specifies the as hash table switch.
-ExcludeDomains String[] optional
Specifies the domains to exclude from the search.
-ExtendedForestInformation IDictionary optional
Specifies one or more values for extended forest information.
-Forest String optionalaliases: ForestName
Specifies the forest name for filtering GPO links.
-GPOCache IDictionary optional
Specifies a cache for storing GPO information.
-IncludeDomains String[] optionalaliases: Domain, Domains
Specifies the domains to include in the search.
-Limited SwitchParameter optionalsets: Linked, ADObject, Filter
Indicates whether to limit the search results.
-Linked String[] optionalsets: Linked
Specifies the type of linked GPOs to retrieve. Valid values are 'All', 'Root', 'DomainControllers', 'Site', and 'OrganizationalUnit'.
Possible values: All, Root, DomainControllers, Site, OrganizationalUnit
-SkipDuplicates SwitchParameter optionalsets: Linked, ADObject, Filter
Indicates whether to skip duplicate search results.
-Summary SwitchParameter optional
Specifies the summary switch.
-ADObject ADObject[] requiredpipeline: True (ByValue, ByPropertyName)sets: ADObject
Specifies the Active Directory object(s) to search for GPO links.
-Filter String optionalsets: Filter
Specifies the filter criteria to search for GPO links.
-SearchBase String optionalsets: Filter
Specifies the search base for filtering GPO links.
-SearchScope ADSearchScope optionalsets: Filter
Specifies the search scope for filtering GPO links.
Possible values: Base, OneLevel, Subtree
-Site String[] optionalsets: Site
Specifies the site(s) to search for GPO links.

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.