Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Tool to check for locked accounts on local computers

Posted on 2006-12-01
3
Medium Priority
?
142 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 2000 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

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

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

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…
In a use case, a user needs to close an opened report by simply pressing the Escape (Esc) key. This can be done by adding macro code in Report_KeyPress or Report_KeyDown event.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

916 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