JSI Tip 9972. How can a query using the LDAP provider be directed to a specific domain controller?

Jerold Schulman

December 13, 2005

1 Min Read
ITPro Today logo in a gray background | ITPro Today

In tip 9690, we returned user properties using the LDAP provider.

If I wanted to return my user properties, using any domain controller, I could run:

cscript //nologo c:utilUserAttr.vbs "CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM"

If I wanted to only connect to the JSI001 domain controller, I could run:

cscript //nologo c:utilUserAttr.vbs "JSI001CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM"

which issues the following command:

Set objUser = GetObject("LDAP://JSI001/CN=Jerold Schulman,CN=Users,DC=JSIINC,DC=COM")



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like