Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tool to check for locked accounts on local computers

Posted on 2006-12-01
3
Medium Priority
?
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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…
The core idea of this article is to make you acquainted with the best way in which you can export Exchange mailbox to PST format.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

721 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