API Reference
Command
Get-ADXGpoInventory
Builds a forest/domain-wide Group Policy inventory rollup.
Examples
Example 1: Build a full GPO inventory rollup for the current forest
Get-ADXGpoInventory
Example 2: Include health signals for a named forest
Get-ADXGpoInventory -Forest 'contoso.com' -IncludeHealth
Example 3: Inspect only EMEA domains with verbose health collection enabled
Get-ADXGpoInventory -DomainFilter '*.emea.contoso.com' -IncludeHealth -Verbose
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-ADXGpoInventory [-DomainFilter <string>] [-Forest <string>] [-IncludeHealth] [-Minimal] [<CommonParameters>]#Parameters
- DomainFilter string
- Optional domain filter (exact or wildcard). Example: "*.emea.contoso.com".
- Forest string
- Forest DNS name. When omitted, the current forest is used.
- IncludeHealth SwitchParameter
- Include health signals (version mismatch AD vs SYSVOL, broken WMI filters). May cost additional LDAP/SYSVOL reads.
- Minimal SwitchParameter
- Emit a compact summary (per-domain counts only).
Outputs
ADPlayground.Gpo.GpoInventoryRollupReport