PC Review


Reply
Thread Tools Rate Thread

DirectoryServices Property Update

 
 
Davie
Guest
Posts: n/a
 
      31st May 2006
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?TGF1cmllQVBNYXJzaA==?=
Guest
Posts: n/a
 
      5th Jul 2006
The corresponding C# code works just fine for me. What is the type of
secretaryDistinguishedName?

"Davie" wrote:

> 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
>
>
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DirectoryServices and ObjectClass property Jeroen Microsoft C# .NET 4 22nd May 2007 05:20 PM
DirectoryServices Update AD property Davie Microsoft ASP .NET 2 1st Jun 2006 08:24 AM
System.DirectoryServices ProxyAddresses property =?Utf-8?B?Qm9uaQ==?= Microsoft Dot NET Framework 2 20th Jul 2005 06:30 AM
Cannot Single out one Property using System.DirectoryServices =?Utf-8?B?bWJvd2Vyc294?= Microsoft Dot NET Framework 0 24th May 2005 02:51 PM
DirectoryServices : pb with property memberOf BlackGoddess Microsoft Dot NET Framework 6 29th Jul 2004 09:24 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:20 PM.