DirectoryServices Update AD property

  • Thread starter Thread starter Davie
  • Start date Start date
D

Davie

I have the following code for updating the secretary field in AD using
VB.NET 2005. However, I get a rather unhelpful 'Unspecified error' when i
try to set the property. Any help would be greatly appreciated.

Dim usr As New DirectoryEntry(personDistinguisedName, adminUserName,
adminPassword)
usr.Properties("secretary").Value = secretaryDistinguisedName
usr.CommitChanges
 
Couple of things to check..

1. You spelled the property name correctly.
2. Your account has permissions to update the field
3. And see if this AD field exists.
 
Yes to all of those!!


Winista said:
Couple of things to check..

1. You spelled the property name correctly.
2. Your account has permissions to update the field
3. And see if this AD field exists.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top