TestimoX

API Reference

Class

GpoOrganizationalUnitService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Produces an Organizational Unit (OU) inventory with object counts and linked GPO metadata, matching the intent of the legacy GPOZaurr OU report.

Inheritance

  • Object
  • GpoOrganizationalUnitService

Methods

public static IReadOnlyList<GpoOrganizationalUnitRow> GetOrganizationalUnits(IReadOnlyList<String> domains, IReadOnlyList<String> excludeOrganizationalUnit = null, IReadOnlyList<GpoListItem> gpoList = null) #
Returns: IReadOnlyList<GpoOrganizationalUnitRow>

Returns an OU inventory for the provided domain list.

Parameters

domains System.Collections.Generic.IReadOnlyList{System.String} requiredposition: 0
Domain DNS names to process.
excludeOrganizationalUnit System.Collections.Generic.IReadOnlyList{System.String} = null optionalposition: 1
Optional OU DN wildcard exclusions (PowerShell-like).
gpoList System.Collections.Generic.IReadOnlyList{ADPlayground.Gpo.GpoListItem} = null optionalposition: 2
Optional pre-fetched GPO list used to resolve display names without extra LDAP calls.

Returns

List of OU rows including object counts, link counts, and recommendations.