Scripts to crawl all computer registries on the network

  • Thread starter Thread starter Ghazan Haider
  • Start date Start date
G

Ghazan Haider

I've been looking for script samples or tools that would get the list
of computers on the network in the domain/workgroup, connect to each
machine and get the contents of a specific registry path, building an
array of computer->reg pair.

This would be useful in getting a list of machines that have a
specific software installed, have ram amount below a threshold, have
3com NICs etc. This is assuming all machines are running the same OS
and the script is run as administrator.

I've been able to get the registry contents of one specific computer
using vbscript and activestate perl, but how do you get a list of all
machines in a domain?

Even better, is there a shareware (or otherwise) application that can
do these things?
 
Hi,

To get the computer list I use ADSI. To check the Reg, I use StdRegProv.

It's also handy if you need to change a key on all machines at once. I
use JScript as the language. VB is utterly horrible, and Perl is
(unfortunately) not built into Windows.
 
I've been looking for script samples or tools that would get the list
of computers on the network in the domain/workgroup, connect to each
machine and get the contents of a specific registry path, building an
array of computer->reg pair.

This would be useful in getting a list of machines that have a
specific software installed, have ram amount below a threshold, have
3com NICs etc. This is assuming all machines are running the same OS
and the script is run as administrator.

I've been able to get the registry contents of one specific computer
using vbscript and activestate perl, but how do you get a list of all
machines in a domain?

Even better, is there a shareware (or otherwise) application that can
do these things?

See tip 4195 in the 'Tips & Tricks' at http://www.jsiinc.com
See tips 5850, 8614, 8278


Jerold Schulman
Windows: General MVP
JSI, Inc.
http://www.jsiinc.com
 
Thanks everyone for your help. We did it manually, but I'll keep the
scripts for future needs, hopefully I could build an application and
release it GPL.
 
Ghazan said:
Thanks everyone for your help. We did it manually, but I'll keep the
scripts for future needs, hopefully I could build an application and
release it GPL.

It's not really difficult enough to warrant a GPL! It's just a few calls
to ADSI and then StdRegProv. It's probably one of the most useful
scripts I've ever created, and saves me hours in time. I can't really
post the whole thing here, as it's specific to my network and uses a lot
of custom libraries, and also ignores some features I don't need, but
which you may!

You'll find examples in the ADSI and WMI groups all the time. If there's
any specific problem you have with the above I can answer it almost
immediately.
 
Back
Top