Results 1 to 5 of 5

Thread: Converting LastLogonTimestamp to a readable format

  1. #1
    Join Date
    Jul 2006

    Converting LastLogonTimestamp to a readable format

    I just recently did a directory attributes dump by using csvde. There is one attributes that I am looking to go for which is the lastlogontimestamp and it is in an interger8 format. Can anyone tell me a way to convert this to a normal readable date format? I do not want to run other scripts against our AD. I want to rather have a script that can run against the export file if there is one. I remember a way by using Excel to conver this to a readable format but I am not able to get this to working now? Anyone could help me from this? Thanks.

  2. #2
    Join Date
    Jan 2006

    RE: Converting LastLogonTimestamp to a readable format

    I think that you can try to use w32tm /ntte lastlogontimestamp_value, to read many values from that file, make a for loop and you are good to go on.

  3. #3
    Join Date
    Jul 2006

    RE: Converting LastLogonTimestamp to a readable format

    Thanks for the reply, but since I am not developer so I dont even know where to start scripting something like a for loop to read out a file and then write back the converter value. Do you have something like this with you?

  4. #4
    Join Date
    Jun 2006

    RE: Converting LastLogonTimestamp to a readable format

    Let's say that you have a text file named logon.txt with the last logon timestamp attribute of the users, similar to the below:
    After that the script would be like below then:
    for /F "tokens=1,* delims= " %%i in (logon.txt)
    do w32tm /ntte %%i

  5. #5
    Join Date
    Nov 2005
    There is a VB Script that will list out the last logon and also other attributes for all users at, just search for the select user account attributes. Also, if you can go to joeware website then there is a way to list out this as well by using oldcmp, and above that it also comes for free.

Similar Threads

  1. How to convert math text PDF format to Kindle readable format
    By The#Gaelic in forum Portable Devices
    Replies: 7
    Last Post: 23-02-2012, 12:09 PM
  2. Replies: 5
    Last Post: 19-04-2011, 07:32 PM
  3. Tips for converting DVD format to iRiver format.
    By Computer_Freak in forum Tips & Tweaks
    Replies: 2
    Last Post: 11-02-2010, 06:28 AM
  4. Router unicode format changing into readable format
    By PARRISH in forum Networking & Security
    Replies: 4
    Last Post: 24-04-2009, 10:33 PM


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Page generated in 1,656,724,053.46757 seconds with 18 queries