API Reference
Class
TrustInactiveChecker
Checks trust relationships for inactivity based on the whenChanged attribute.
Inheritance
- Object
- TrustInactiveChecker
Constructors
public TrustInactiveChecker(Func<String, Int32, IEnumerable<TrustInactiveInfo>> fetchTrusts = null) #Initializes a new instance of the TrustInactiveChecker class.
Parameters
- fetchTrusts System.Func{System.String,System.Int32,System.Collections.Generic.IEnumerable{ADPlayground.Trusts.TrustInactiveInfo}} = null
- Function returning inactive trust info for a domain.
Methods
public IEnumerable<TrustInactiveInfo> CheckDomain(String domainName, Int32 maxInactiveDays) #Returns:
IEnumerable<TrustInactiveInfo>Checks a specific domain for inactive trusts.
Parameters
- domainName System.String
- maxInactiveDays System.Int32
public IEnumerable<TrustInactiveInfo> CheckForest(Int32 maxInactiveDays) #Returns:
IEnumerable<TrustInactiveInfo>Checks all domains in the forest for inactive trusts.
Parameters
- maxInactiveDays System.Int32