Tuesday, October 26, 2010

How to set an AD Attribute using LDAP in VBScript

How to set an AD Attribute using LDAP in VBScript. In this instance I'm setting the mail attribute.

Const ADS_PROPERTY_UPDATE = 2
Set objUser = GetObject("LDAP://CN=Clint Boessen,OU=Corporate Information Services,OU=Corporate Services,DC=kbomb,DC=local")
objUser.Put "mail", "clint@kbomb.com.au"
objUser.SetInfo

1 comment:

  1. Thank you for providing the clue!
    You saved a lot of time for me.

    ReplyDelete