Solved

Tool to check for locked accounts on local computers

Posted on 2006-12-01
3
131 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 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