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.
 
Back
Top