Solved

Tool to check for locked accounts on local computers

Posted on 2006-12-01
3
132 Views
Last Modified: 2010-04-13
I'm using useraccount.vbs from the 2000 RK with great success to check the local domain and local servers for locked out accounts.  When I try to run this tool across a WAN on certain servers it is incredibly slow - effectively unusable.  I can't use Win2003 only tools.

I've googled and found the MS "ALTools" which don't do what I need.  
I've also found the joeware.net tool, but that only works on Domain controllers.

Anyone know of another non-gui tool/script that I can try?
0
Comment
Question by:nummagumma2
  • 2
3 Comments
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
ID: 18056077
The vbscript below should do it, though I don't know if it will be any faster than useraccount.vbs


'Enter all target computernames in this array.
arrComputers = Array("COMPUTER1","COMPUTER2","COMPUTER3")

For Each objComputer in arrComputers

   Set colAccounts = GetObject("WinNT://" & objComputer & "")
   colAccounts.Filter = Array("user")

   For Each objUser In colAccounts
      If objuser.IsAccountLocked = "True" Then
         Wscript.Echo objComputer & "\" & objUser.Name
      End If
   Next

Next
0
 
LVL 1

Author Comment

by:nummagumma2
ID: 18289250
It's no faster... :(
0
 
LVL 1

Author Comment

by:nummagumma2
ID: 18688911
The cause was ultimately found to be related to built-in Checkpoint firewall rules -aka SMartDefense blocking port 135 traffic and labeling it as ICKiller.  Re-working that permitted the .vbs to work.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This article describes how to reset your Windows 10 password when you've forgotten it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question