我尝试用LastPasswordSet获取C#本地帐户的"toto“的日期时间你有什么办法修好它吗?你也有同样的行为吗?我想使用LastPasswordSet来确定密码是否已经更改,但是这些数据不是固定的,而且比较也不安全。以毫秒为单位,有时第二毫秒就会转到下一毫秒。奇怪的是,LastPasswordSet不是用来计算PasswordAge的数据,反之亦然。你好,我尝试了这段代码,但是属性LastPasswordSet不存在
var user = new DirectoryE
Console.WriteLine("oUserPrinciapal is null"); if (oUserPrincipal.LastPasswordSet== null) Console.WriteLine("lastpasswordset is null");dateOrNull = oUserPrincipal.LastPasswordSet;
BadLogonCount As String Public LastLogon As String
Public LastPasswordSetIsAccountLockedOut As String, BadLogonCount As String, LastBadPasswordAttempt As String, LastLogon As String, LastPasswordSetMe.LastBadPasswordAttempt = Last