API Reference
Command
Get-ADXGpo
Lists GPOs across a domain or forest, always scanning all domains and Sites, and includes consistency (AD/SYSVOL) state.
Examples
Example 1
Get-ADXGpo -Domain 'contoso.com' | Select-Object DomainName,DisplayName,Guid,Consistency,LinkState
Example 2
Get-ADXGpo | Where-Object Consistency -eq 'SysvolOnly'
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-ADXGpo [-Domain <string>] [-Forest <string>] [-SkipAcl] [-SkipSummary] [-Type <string>] [<CommonParameters>]#Parameters
- Domain string
- Limit results to a specific domain within the forest. When omitted, all domains are scanned.
- Forest string
- Forest DNS name to enumerate. When omitted, uses the current forest.
- SkipAcl SwitchParameter
- Skips owner/permissions enrichment to speed up large listings.
- SkipSummary SwitchParameter
- Skips per-GPO summary counts (scripts, settings, pol/adm counts) for faster execution.
- Type string
- Link-state/category filter: All (default), Unlinked, LinkedEnabled, LinkedDisabled, or LinkedBroken.
Outputs
ADPlayground.Gpo.GpoListItem