12 Jun 2011

Converting Integer8 to Time and Date

I recently discovered a quick way of converting an Integer8 number which is used for the pwdLastSet attribute among others in Active Directory. The Integer8 is often used to represent time in 100-nanosecond intervals since 12:00 AM January 1, 1600 and there appears as a long integer like value such as 129148817107011564

To convert this value to a meaningful date, the w32tm command can be used from a command line with the ntte argument..

w32tm /ntte