TestimoX

API Reference

Class

GpoLinkRepairService

Namespace ADPlayground.Gpo
Assembly ADPlayground
Modifiers static

Repairs malformed gPLink values by removing invalid entries (non-Policies paths, invalid GUIDs) and optionally removing cross-domain links.

Inheritance

  • Object
  • GpoLinkRepairService

Methods

public static Int32 RepairDomain(String domainName, Boolean removeCrossDomain = false, Nullable<Int32> maxToFix = null) #
Returns: Int32

Repairs gPLink values across a domain.

Parameters

domainName System.String requiredposition: 0
removeCrossDomain System.Boolean = false optionalposition: 1
maxToFix System.Nullable{System.Int32} = null optionalposition: 2
public static Int32 RepairForest(Boolean removeCrossDomain = false, Nullable<Int32> maxToFix = null) #
Returns: Int32

Repairs gPLink values across all domains in the forest.

Parameters

removeCrossDomain System.Boolean = false optionalposition: 0
When true, remove links pointing to GPOs in other domains.
maxToFix System.Nullable{System.Int32} = null optionalposition: 1
Optional maximum number of objects to fix.

Returns

Total number of objects updated.