
Reading pwdLastSet property of a computer object in AD
I am trying to determine the password age of a computer in Active Directory.
When I read the pwdLastSet property using the query results from
DirectorySearcher, I get values that make no sense at all. VB sees the
result as a Long and the values are all over the place. When using the
PasswordLastChanged method using IADs, I get reasonable values.
If anyone knows the secret for reading this property using DirectorySearcher
in VB, I would appreciate it.
Thanks,
Mike