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:\util\UserAttr.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:\util\UserAttr.vbs "JSI001\CN=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")