TestimoX

API Reference

Command

Remove-ADXGpoLinkEmptyOU

Namespace ADPlayground.PowerShell
Outputs
System.Int32

Removes GPO links (clears gPLink) from Organizational Units that are flagged as safe to unlink by the OU inventory logic (GPOZaurr parity).

Examples

Generated fallback example

Generated fallback example from command syntax.


Remove-ADXGpoLinkEmptyOU -ExcludeDomains @('Value')
        

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

Remove-ADXGpoLinkEmptyOU [-ExcludeDomains <string[]>] [-ExcludeOrganizationalUnit <string[]>] [-Forest <string>] [-IncludeDomains <string[]>] [-LimitProcessing <int>] [<CommonParameters>]
#

Parameters

ExcludeDomains string[] optionalposition: namedpipeline: false
Exclude domains from the scan (DNS names).
ExcludeOrganizationalUnit string[] optionalposition: namedpipeline: falsealiases: ExcludeOU, Exclusions
OU distinguished name wildcard exclusions.
Forest string optionalposition: namedpipeline: falsealiases: ForestName
Target a different forest (DNS name). When omitted, the current forest is used.
IncludeDomains string[] optionalposition: namedpipeline: falsealiases: Domain, Domains
Include only specific domains (DNS names). When omitted, all forest domains are scanned.
LimitProcessing int optionalposition: namedpipeline: false
Maximum number of Organizational Units to process.

Outputs

System.Int32