Convert
FILETIME (18 digits), Generalized Time (20261111140000.0Z), Unix seconds or milliseconds, ISO 8601, or a negative AD interval such as maxPwdAge.
Stale accounts filter
Good to know
- FILETIME counts 100-nanosecond intervals since 1601-01-01 UTC.
0and9223372036854775807are special: inaccountExpiresboth mean "never". lastLogonTimestampis replicated, but only updated when it is older thanms-DS-Logon-Time-Sync-Interval(14 days by default minus a random 5). It is the right attribute for stale-account reports, not for "last logon today".lastLogonis per domain controller and not replicated: to get the real value you have to query every DC.pwdLastSet = 0means the user must change the password at next logon.