Couldn't you just query DNS (ie, nslookup aa.bb.cc) and look at the IPs returned?

Mike Thommes

-----Original Message-----
From: AD [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 8:47 AM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Enumerating DCs from a workstation that is not
member of domain.


Hey Guys,
 
I am looking for a vb script or vb.net code that would return domain controllers 
(names or ip addresses) of a specific domain name on a workstation that is NOT member 
of the domain.
 
When you add a computer to a domain (right click "my computer", properties, Computer 
Name, Change) you specify a domain name. When you click on ok it will ask you for a 
username and password right? When you click "ok" the computer must talk with a domain 
controller to add your computer to the domain right? I basically need that 
functionality. 
 
Thank you in advance.
 
 
Yves St-Cyr
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/

Reply via email to