logo       

RE: VBSCRIPT ADSI IADs Get Method: msg#01195

Subject: RE: VBSCRIPT ADSI IADs Get Method

Nevermind, just found the answer to my own question, and it is no, must use the persons CN, no other attributes are accepted, good to know.  Thanks for the potential help.

 

Jeremy

 


From: ActiveDir-owner@xxxxxxxxxxxxxxxxxx [mailto:ActiveDir-owner@xxxxxxxxxxxxxxxxxx] On Behalf Of Burkes, Jeremy [Contractor]
Sent: Wednesday, November 30, 2005 3:02 PM
To: ActiveDir@xxxxxxxxxxxxxxxxxx
Subject: [ActiveDir] _vbscript_ ADSI IADs Get Method

 

Everyone,

            I am trying to write a _vbscript_ to connect to a user account using the samaccountname attribute to update some info.  Is this even possible and if so can someone provide a code sample, I would think it would look something like this for Test in the Microsoft domain:

 

            LDAP://sAMAccountName=Test, OU=Users,DC=Microsoft,DC=COM or LDAP://sAMAccountName=Test,CN=Users,DC=Microsoft,DC=COM

 

            Then again, maybe this is not even possible.  If not should I use ADO instead even though I am returning 1 record with each query, seems inefficient way to me when I can just use an ADSI pointer.

 

Jeremy

--------------------------
Jeremy Burkes
System Analyst/MIS SPHQ
jeremy.burkes.ctr@xxxxxxxxxxxx
PH: 202-764-1270 Fax: 202-764-1503

 

<Prev in Thread] Current Thread [Next in Thread>