API Reference
Class
KrbtgtPasswordAgeChecker
Provides helpers for determining the age of the krbtgt password.
Inheritance
- Object
- KrbtgtPasswordAgeChecker
Methods
GetPasswordAge 2 overloads
public static IEnumerable<KrbtgtPasswordAgeInfo> GetPasswordAge(Int32 thresholdDays = 180) #Returns:
IEnumerable<KrbtgtPasswordAgeInfo>Retrieves password age information for all domains in the current forest.
Parameters
- thresholdDays System.Int32 = 180
- Age threshold in days.
Returns
Collection of password age information.
public static KrbtgtPasswordAgeInfo GetPasswordAge(String domainName, Int32 thresholdDays = 180) #Returns:
KrbtgtPasswordAgeInfoRetrieves password age information for a specific domain.
Parameters
- domainName System.String
- Domain to query.
- thresholdDays System.Int32 = 180
- Age threshold in days.
Returns
Information about the password age or null.
public static KrbtgtPasswordAgeInfo GetPasswordAgeForCurrentDomain(Int32 thresholdDays = 180) #Returns:
KrbtgtPasswordAgeInfoRetrieves password age information for the current domain.
Parameters
- thresholdDays System.Int32 = 180
- Age threshold in days.
Returns
Information about the password age or null.