Chris,
you may want to create an ldap query in your vb script to what ever
container you are trying to enumerate and run through each object in that
container, write that to a csv (or text, whatever you need), and then move
on to the next container. Nested "for" loops would probably be the best
thing. Something like
AdsPath="LDAP://<dc name>/ou=<lowest level of
container>,ou=<container>,ou=<container>,dc=<etc>,dc=<etc, etc for your
entire FQDN>";
Then do a foreach adsobj to return whatever values you are looking for. The
properties you can pull and some tips on how to get the data can be found
here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adschema/ad
/win2k3_entry_attributes_all.asp
Hope this helps!
John A. Bjelke
Unisys
505.853.6774
[EMAIL PROTECTED]
The more corrupt the state, the more numerous the laws. - Cornelius
Tacitus
-----Original Message-----
From: England, Christopher M [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 7:56 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Gathering Computer Account Info via script
Greetings all,
I need to query a portion of the Active Directory (the OUs that I
control) and get a list of computer objects and some associated data
(Operating System name and version, for example). Can I do this with
VBS/WSH?
Thanks in advance for any help!
Chris
--------------------------------------------------------
Christopher England
Server Administrator
College Information Technology Office
Indiana University
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/