troubleshooting Question

8007200A "specified directory service attribute or value does not exist" error using PutEx in VBS

Avatar of reesejl
reesejl asked on
Active DirectoryVB Script
3 Comments1 Solution9696 ViewsLast Modified:
Hello Experts...
I have written a VB script that is supposed to add data to a multivalued attribute (that we have added to our schema) and am getting an error when it tries to execute the "SetInfo" command.

I have reduced the script to its most basic components and am still getting the error.  Here is what I am trying...
set objUser = GetObject("LDAP://CN=User Name, OU=SubGroup1, OU=Group2, DC=sdomain, DC=domain, DC=com")
objUser.PutEx APPEND, "customattribute", Array("Data")
I get the error on the last line when it tries to Setinfo.

The attribute has the following properties:
Syntax: Case insensitive string
Attribute is active  (checkbox is checked)
There are no other checkboxes that are checked for this attribute.  

The thing that seems strange is, we can set values for the custom attribute using LDIFDE with no problems.
Thanks in advance for your help!
Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros