DirectoryServices Property Update

  • 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
 
The corresponding C# code works just fine for me. What is the type of
secretaryDistinguishedName?
 
Back
Top