Imanami Community

Join or create discussions about common issues and solutions.
Welcome to Imanami Community Sign in | Join | Help
in Search

lastLogonTimestamp

Last post 04-23-2008, 10:56 AM by Robin Soto. 2 replies.
Sort Posts: Previous Next
  •  04-22-2008, 7:50 AM 573

    lastLogonTimestamp

    Hi

    I have been asked to produce a database synchronised from Active Directory and dumping cn, contact details and contents of the lastLogonTimestamp attribute.

    Is it possible to synchronise the lastLogonTimestamp attribute, decoding it along the way, and to store it in a SQL table?

    Thanks

    CarpMan


    CarpMan
  •  04-23-2008, 10:45 AM 583 in reply to 573

    Re: lastLogonTimestamp

    Attachment: lastlogonScript.txt

    Hello CarpMan,

    Attached is a script that can be used to export to an .xls file the lastLogon date for Active Directory accounts.  In order to use the script you will need to save it to your desktop or server, then change the file extension from .txt to .vbs.  The machine the script is saved to will need to have Microsoft Excel installed on it as well.  Double click on the lastlogonScript.vbs to begin.  You will be prompted with a dialog box to enter the number of days the last time a user logged in.  If you set the value to zero (0) it will return all users and their lastLogon date.  After the .xls file is generated it can be used as the source file for the DTM job to synchronize the lastLogon time stamp to the SQL database.

    If you have questions about the information provided above, please post back with your response.  Looking forward to hearing from you soon.

  •  04-23-2008, 10:56 AM 584 in reply to 583

    Re: lastLogonTimestamp

    BTW: The script can be called using a .bat file that is scheduled to run on a consistent basis, as well.
View as RSS news feed in XML
Powered by Community Server (Personal Edition), by Telligent Systems