I'm trying the last time when my windows password was written incorrect. And to do it I use UserPrincipalSearcher:
PrincipalContext pc = new PrincipalContext(ContextType.Machine);
var v = UserPrincipal.FindByBadPasswordAttempt(pc, DateTime.Now, MatchType.LessThan);
But I get NotSupported exception in the second line of code. What is the problem?