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
Subscribe to:
Post Comments (Atom)
Thank you for providing the clue!
ReplyDeleteYou saved a lot of time for me.