Solved

Tool to check for locked accounts on local computers

Posted on 2006-12-01
3
129 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
Comment Utility
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
Comment Utility
It's no faster... :(
0
 
LVL 1

Author Comment

by:nummagumma2
Comment Utility
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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now