TestimoX

API Reference

Class

GpoLinkCleaner

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Provides methods to locate and optionally remove GPO links pointing to nonexistent GPOs.

Inheritance

  • Object
  • GpoLinkCleaner

Methods

ExtractGuids(System.String gplink) #

Extracts all GPO GUIDs from the provided gPLink value.

Parameters

gplink System.String required
Raw gPLink string.

Returns

GUIDs found in the value.

public static Task<List<GpoLinkInfo>> GetOrphanedLinksAsync(String domainName = null) #
Returns: Task<List<GpoLinkInfo>>

Asynchronously retrieves GPO links that reference nonexistent GPOs.

Parameters

domainName System.String = null optionalposition: 0
Target domain name or null for the current domain.

Returns

List of orphaned links.

public static Task RemoveOrphanedLinksAsync(IEnumerable<GpoLinkInfo> links) #
Returns: Task

Asynchronously removes the specified GPO links.

Parameters

links System.Collections.Generic.IEnumerable{ADPlayground.Gpo.GpoLinkInfo} requiredposition: 0
Links to remove.