API Reference
Class
GpoOwnerReportService
Provides a GPOZaurr-style owner report for GPOs in a domain (AD owner + SYSVOL owner).
Inheritance
- Object
- GpoOwnerReportService
Methods
public static IReadOnlyList<GpoOwnerRow> GetOwners(String domainName, Boolean includeSysvol = true, Boolean skipBroken = false, IReadOnlyList<String> approvedOwners = null, Int32 maxGpos = 50000) #Returns:
IReadOnlyList<GpoOwnerRow>Enumerates GPO ownership information for the specified domain.
Parameters
- domainName System.String
- DNS domain name.
- includeSysvol System.Boolean = true
- When true, also reads SYSVOL folder ownership and reports consistency.
- skipBroken System.Boolean = false
- When true, skips GPOs whose SYSVOL folder is missing/unreachable.
- approvedOwners System.Collections.Generic.IReadOnlyList{System.String} = null
- Optional list of approved owner identities (name or SID) used to label non-admin owners.
- maxGpos System.Int32 = 50000
- Maximum number of GPOs to process.
Returns
Ownership rows (best-effort; skips GPOs that cannot be read).