API Reference
Class
GpoLinkRepairService
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:
Int32Repairs gPLink values across a domain.
Parameters
- domainName System.String
- removeCrossDomain System.Boolean = false
- maxToFix System.Nullable{System.Int32} = null
public static Int32 RepairForest(Boolean removeCrossDomain = false, Nullable<Int32> maxToFix = null) #Returns:
Int32Repairs gPLink values across all domains in the forest.
Parameters
- removeCrossDomain System.Boolean = false
- When true, remove links pointing to GPOs in other domains.
- maxToFix System.Nullable{System.Int32} = null
- Optional maximum number of objects to fix.
Returns
Total number of objects updated.