Home All Groups Group Topic Archive Search About

Connection on a AD domain via scripting



Author
14 Mar 2007 8:35 AM
Oriane
Hi there,

Suppose I'm connected on a computer in a NT4 domain. I want to connect on a
AD domain with a bidirectional approval relationships for, say, get the
domain controllers of this AD domain.

What parameter do I have to pass to GetObject in the following script:

' Determine DNS name of domain from RootDSE.
Set objRootDSE = GetObject("LDAP://???")
strDNSDomain = objRootDSE.Get("defaultNamingContext")

Oriane

AddThis Social Bookmark Button