C# Active Directory attribute Logon-Count reached maximum
For each user we're retrieving the logon count in Active Directory (through C#). Now I've noticed that some users are all set to 65535.
According to MSDN:
Due to compatibility with 16-bit versions of LAN Manager, the attribute has an upper limit of 65535. After this limit has been reached, you cannot use it as an indicator of user activity on this domain 开发者_JAVA技巧controller.
I'm just curious (it's not a big issue), is there another way to retieve the logon count from Active Directory?
You could reset the counter to 0 if the limit has been reached.
simply set
.Properties["logoncount"].Value = 0;
.CommitChanges();
You need the correct rights to update this info.
精彩评论