TestimoX

API Reference

Command

Get-ADXGpo

Namespace ADPlayground.PowerShell
Outputs
ADPlayground.Gpo.GpoListItem

Lists GPOs across a domain or forest, always scanning all domains and Sites, and includes consistency (AD/SYSVOL) state.

Examples

Authored help example

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 optionalposition: namedpipeline: false
Limit results to a specific domain within the forest. When omitted, all domains are scanned.
Forest string optionalposition: namedpipeline: false
Forest DNS name to enumerate. When omitted, uses the current forest.
SkipAcl SwitchParameter optionalposition: namedpipeline: false
Skips owner/permissions enrichment to speed up large listings.
SkipSummary SwitchParameter optionalposition: namedpipeline: false
Skips per-GPO summary counts (scripts, settings, pol/adm counts) for faster execution.
Type string optionalposition: namedpipeline: false
Link-state/category filter: All (default), Unlinked, LinkedEnabled, LinkedDisabled, or LinkedBroken.

Outputs

ADPlayground.Gpo.GpoListItem