[THIN] OT: vbscript / lDAP question

  • From: Steve Snyder <kwajalein@xxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Tue, 5 Nov 2013 08:57:48 +0100

Hoping someone will know this

I can create an object based on an LDAP query and would like to know which
DC was/is being used for establishing the object. Obviously I can specify a
specific DC in the query if I'd like to, but I don't like to.

In scripting terms I'm trying to do something like

Set ComputerOBJ =
GetObject("LDAP://CN=MY_COMPUTER,OU=Computers,DC=My_Domain,DC=ORG")
Wscript.Echo "DC that the LDAP Query used for establishing ComputerOBJ: " &
ComputerOBJ.ConnectedDC

Other related posts:

  • » [THIN] OT: vbscript / lDAP question - Steve Snyder