TestimoX

API Reference

Command

Remove-ADXGpoBrokenLink

Namespace ADPlayground.PowerShell
Outputs
System.Int32

Removes orphaned GPO links (container gPLink entries that reference nonexistent GPOs) with optional -Max and safety prompts.

Examples

Authored help example

Example 1: Preview removal of up to five broken links per domain


Remove-ADXGpoBrokenLink -Max 5 -WhatIf
        

Example 2: Remove broken links only in the production domain after review


Remove-ADXGpoBrokenLink -DomainName 'contoso.com' -Max 20 -Confirm:$false
        

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