Deletes selected attributes from a user account. Demonstrates how to delete single-valued attributes as well as how to delete a single entry from a multi-valued attribute.
Const ADS_PROPERTY_DELETE = 4Set objUser = GetObject _("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")objUser.PutEx ADS_PROPERTY_DELETE, _"otherTelephone", Array("(425) 555-1213")objUser.PutEx ADS_PROPERTY_DELETE, _"initials", Array("E.")objUser.SetInfo
This is a VB Script, this can be used by saving the file in .vbs file