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!
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
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 >