Last logon is kept in the registry on the local machine, unless your policies prevent that being kept, as DefaultUserName. Take a look @ HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName. You could write it to a log as part of the login script, along with current time and computer name, or you could poll it via script @ intervals using a txt file with the names of the systems you want to monitor. Hope this helps!
John A. Bjelke UNISYS Systems administrator Supporting AFRL Kirtland AFB 505.853.6774 [EMAIL PROTECTED] The contents of this Email communication are confidential to the addressee. If you are not the intended recipient you may not disclose or distribute this communication in any form but should immediately contact the Sender. The information, images, documents and views expressed in this Email are personal to the Sender and do not expressly or implicitly represent official positions and policies of Unisys Federal Systems or it's subsidiaries and no authority exists on behalf of Unisys to make any agreements, representations or other binding commitment by means of Email. -----Original Message----- From: Roger Seielstad [mailto:roger.seielstad@;inovis.com] Sent: Friday, November 08, 2002 5:09 AM To: '[EMAIL PROTECTED]' Subject: RE: [ActiveDir] LDAP Display Name for User logged into computer You can't do that, per se. AD doesn't track who logged in where. You'd have to turn on logon auditing and scrape the DC logs to pull that off. Alternately, there *might* be something you can poll per machine via WMI, but I don't think so. ------------------------------------------------------ Roger D. Seielstad - MCSE Sr. Systems Administrator Inovis - Formerly Harbinger and Extricity Atlanta, GA > -----Original Message----- > From: Jones, Rick J.(Desktop Engineering) > [mailto:rick.j.jones@;attws.com] > Sent: Thursday, November 07, 2002 6:40 PM > To: [EMAIL PROTECTED] > Subject: [ActiveDir] LDAP Display Name for User logged into computer > > > What is the LDAP display name on a computer account for the > user that logged into the system from that computer? > > What I am trying to do is pole active directory with a > vbscript I have to find out the UserID of the user that last > logged into the domain from that computer. > > Any thoughts? > > Rick > > List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/ List info : http://www.activedir.org/mail_list.htm List FAQ : http://www.activedir.org/list_faq.htm List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/