There are many ways to convert these values... I'll show you a few tricks to do this.
Lets export a Integer8 value:
dsquery * "CN=computerobject,OU=Servers,DC=Domain,DC=internal" -attr lastLogon
lastLogon
129040375603051932

One way you can accomplish this is by using powershell:
$(get-date 1/1/1601).adddays(($(&dsquery * "CN=computerobject,OU=Servers,DC=Domain,DC=internal" -attr lastLogon)[1].Trim())/(60*10000000)/1440)

If you dont have powershell you can simply use the w32tm utility:
w32tm /ntte 129040375603051932
No comments:
Post a Comment