Title: RE: [ActiveDir] Enumerating DCs from a workstation that is not member of domain.
Sounds to me like you need to hardcode a domain account and password in an ADSI bind, then do a dsgetdc. Not sure whether you can do that in VB or VBscript, but I believe that's what the domain join and tools like nltest do. Now the scripting gurus can wade in.
 
Wook
 
"Once my Valentine,
  Her name escapes me like a
    Restore mode password."


From: AD
Sent: Thu 5/13/2004 12:45 PM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Enumerating DCs from a workstation that is not member of domain.

Believe it or not Mike I gave that idea a lot of thought. NSLookup -t NS DomainName.com. But I would have to create a shell object, capture the output to a file and then parse it. Not the cleanest solution.
 
I was hoping to find an object that will kinda do it all.


From: [EMAIL PROTECTED] on behalf of Thommes, Michael M.
Sent: Thu 5/13/2004 10:10 AM
To: [EMAIL PROTECTED]
Subject: RE: [ActiveDir] Enumerating DCs from a workstation that is not member of domain.

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/[EMAIL PROTECTED]/


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/[EMAIL PROTECTED]/

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