Get-GPOZaurrLink
Retrieves Group Policy Object (GPO) links based on specified criteria.
Syntax
Get-GPOZaurrLink [-AsHashTable] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-GPOCache <IDictionary>] [-IncludeDomains <String[]>] [-Limited] [-Linked <All|Root|DomainControllers|Site|OrganizationalUnit>] [-SkipDuplicates] [-Summary] [<CommonParameters>]#LinkedGet-GPOZaurrLink -ADObject <ADObject[]> [-AsHashTable] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-GPOCache <IDictionary>] [-IncludeDomains <String[]>] [-Limited] [-SkipDuplicates] [-Summary] [<CommonParameters>]#ADObjectGet-GPOZaurrLink [-AsHashTable] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Filter <String>] [-Forest <String>] [-GPOCache <IDictionary>] [-IncludeDomains <String[]>] [-Limited] [-SearchBase <String>] [-SearchScope <Base|OneLevel|Subtree>] [-SkipDuplicates] [-Summary] [<CommonParameters>]#FilterGet-GPOZaurrLink [-AsHashTable] [-ExcludeDomains <String[]>] [-ExtendedForestInformation <IDictionary>] [-Forest <String>] [-GPOCache <IDictionary>] [-IncludeDomains <String[]>] [-Site <String[]>] [-Summary] [<CommonParameters>]#SiteDescription
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
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
- Specifies the as hash table switch.
- -ExcludeDomains String[]
- Specifies the domains to exclude from the search.
- -ExtendedForestInformation IDictionary
- Specifies one or more values for extended forest information.
- -Forest String
- Specifies the forest name for filtering GPO links.
- -GPOCache IDictionary
- Specifies a cache for storing GPO information.
- -IncludeDomains String[]
- Specifies the domains to include in the search.
- -Limited SwitchParameter
- Indicates whether to limit the search results.
- -Linked String[]
- 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
- Indicates whether to skip duplicate search results.
- -Summary SwitchParameter
- Specifies the summary switch.
- -ADObject ADObject[]
- Specifies the Active Directory object(s) to search for GPO links.
- -Filter String
- Specifies the filter criteria to search for GPO links.
- -SearchBase String
- Specifies the search base for filtering GPO links.
- -SearchScope ADSearchScope
- Specifies the search scope for filtering GPO links.
- Possible values:
Base,OneLevel,Subtree - -Site String[]
- 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.