Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Find all user accounts' lastLogonTimeStamp and write to user specified file

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,35945
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> Post a VBScript >> Find all user accounts' lastLogonTimeStamp and write to user specified file
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Find all user accounts' lastLogonTimeStamp and write to... - 7/4/2006 5:53:23 PM   
  Weegie

 

Posts: 6
Score: 0
Joined: 5/9/2006
Status: offline
I have been looking for a way to find unused user accounts in domains and make a list of these easilly imported into Excel for easy sorting.
Googling myself green revealed no scripts performing this particular task, so I created this script;


      


I guess it may need refinement, but it works pretty well here. I must admit I did scissor this together from a couple of searches on-line revealing the functions I needed as I am indeed very new to VB.
Hope someone might find it useful
 
 
Post #: 1
 
 RE: Find all user accounts' lastLogonTimeStamp and writ... - 9/13/2006 7:54:27 PM   
  nickintime

 

Posts: 1
Score: 0
Joined: 9/13/2006
Status: offline
Hi . Just wondering if your script queries all domain controllers in a windows 2000 domain as the lastlogon attribute is not replicated in AD 2000 native/mixed.
The script might report inaccurate last logon times as a result. I found this script that queries all domain controllers in a domain..

      

EDIT(EBGREEN): Code tags FTW!

< Message edited by ebgreen -- 9/14/2006 1:26:05 AM >

(in reply to Weegie)
 
 
Revisions: 1 | Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Find all user accounts' lastLogonTimeStamp and write to user specified file Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts