Wednesday, July 11, 2012

How to Convert ldap timestamp to AD timestamp ( pwdLastSet etc..)

My time , you may find yourself in situation where you need to run query to find how may user have changed their password before or after specific time i.e. AD and AD LDS uses pwdLastSet field
(ldap timestamp +11644473600) *  10000000  = AD timestamp . Same way divided by  10000000 and then subtract   11644473600 .

To get the Epoh timestamp  , use this http://www.onlineconversion.com/unix_time.htm 

No comments: