API Reference
Function
Get-GPOZaurrOrganizationalUnit
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
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 SetsParameters
- ExcludeDomains String[]
- Specifies an array of domains to exclude from processing.
- ExcludeOrganizationalUnit String[]
- Specifies an array of OUs to exclude from processing.
- ExtendedForestInformation IDictionary
- Specifies additional information about the forest.
- Forest String
- Specifies the name of the forest to retrieve information from.
- IncludeDomains String[]
- Specifies an array of domains to include for processing.
- Option String[]
- Specifies the action to perform on the retrieved data. Valid values are 'OK', 'Unlink', or 'Delete'.
- Possible values:
OK,Unlink,Delete