TestimoX

API Reference

Command

Get-ADXGpoLink

Namespace ADPlayground.PowerShell

Enumerates GPO link targets for a specific GPO by Id or Name. Defaults to forest-wide scan including Sites (Configuration NC). Use -Summary to return per-target counts (Enabled/Disabled/Broken) in one view.

Examples

Authored help example

Example 1: Show every link target for the Default Domain Policy


Get-ADXGpoLink -Id '31B2F340-016D-11D2-945F-00C04FB984F9'
        

Example 2: Summarize cross-domain links for a hardening GPO


Get-ADXGpoLink -Name 'Workstation Hardening' -Domain 'contoso.com','emea.contoso.com' -Summary -CrossDomainOnly
        

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