473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

removing AD profilePath

I thought this was a simple question. It is too simple to be posted? Is it
the wrong newsgroup (maybe server.scripting or something)? someone? anyone?

bob

"Bob Weiner" <bo*@engr.uconn.eduwrote in message
news:uu**************@TK2MSFTNGP02.phx.gbl...
How do I remove the profilePath from a user with C#? The page,
http://msdn.microsoft.com/library/de...properties.asp
seems like a good reference but somehow forgot this.

I have tried several variations of the following:

de.Properties["profilePath"].Remove(de.Properties["profilePath"].Value);
de.CommitChanges();

or
de.Properties["profilePath"].RemoveAt(0);
de.CommitChanges();

they all cause a constraint violation. Is the problem with my code or am I
truly violating some AD constraint? I know everyone isn't required to have
a profile.

Thanks,
bob

Sep 5 '06 #1
3 1611

"Bob Weiner" <bo*@engr.uconn.eduwrote in message
news:uV**************@TK2MSFTNGP05.phx.gbl...
|I thought this was a simple question. It is too simple to be posted? Is it
| the wrong newsgroup (maybe server.scripting or something)? someone?
anyone?
|
| bob
|

You can't remove this property from the AD, you can only set it's value,
here the value of the "profilePath". If you don't have a profile set it's
path to an empty string.
Note that it's better to post such questions to the
Microsoft.public.windows.server.active_directory NG group or the adsi NG.

Willy.
Sep 5 '06 #2
Thanks!

I'll be more careful with my newsgroup selection.

bob
"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:O%****************@TK2MSFTNGP04.phx.gbl...
>
"Bob Weiner" <bo*@engr.uconn.eduwrote in message
news:uV**************@TK2MSFTNGP05.phx.gbl...
|I thought this was a simple question. It is too simple to be posted? Is
it
| the wrong newsgroup (maybe server.scripting or something)? someone?
anyone?
|
| bob
|

You can't remove this property from the AD, you can only set it's value,
here the value of the "profilePath". If you don't have a profile set it's
path to an empty string.
Note that it's better to post such questions to the
Microsoft.public.windows.server.active_directory NG group or the adsi NG.

Willy.


Sep 6 '06 #3

"Bob Weiner" <bo*@engr.uconn.eduwrote in message
news:up**************@TK2MSFTNGP06.phx.gbl...
| Thanks!
|
| I'll be more careful with my newsgroup selection.
|
| bob
|
|

No problem to post to this NG as well, but you might get better answers when
posting to an AD or adsi NG.

Willy.

Sep 6 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jeremy Owens-Boggs | last post by:
We are trying to implement a dual list box selection where you have two list boxes, You highlight items in the right side list box, click a button and this moves those items over to the left hand...
0
by: sameer mowade via .NET 247 | last post by:
Hello All, I have problem while dynamically removing row from the Datagrid which i have added dynamically as shown in the following code snippet. The problem is that while removing dynamically...
66
by: Cor | last post by:
Hi, I start a new thread about a discussion from yesterday (or for some of us this morning). It was a not so nice discussion about dynamically removing controls from a panel or what ever. It...
3
by: kevin | last post by:
Is that even possible? I am creating a web service in .NET to expose some already created .NET programs to other groups. One group is writing the client in PERL, and thus wishes the wsdl schema...
3
by: Nathan Sokalski | last post by:
I am having trouble removing cookies that I created with my site. Here is the code I am using to try and remove them: If Not Request.Cookies("username") Is Nothing Then...
9
by: clintonG | last post by:
The Barnes & Noble stores in and around Milwaukee, Wisconsin have removed or are removing all of the Microsoft platform programming and support magazines from their shelves. Not one single magazine...
6
by: Niyazi | last post by:
Hi all, What is fastest way removing duplicated value from string array using vb.net? Here is what currently I am doing but the the array contains over 16000 items. And it just do it in 10 or...
2
by: techi_C | last post by:
Hi I'm getting a problem while removing semaphore from system. Before removing semaphore I'm checking the usage count of a smaphore. // checking usage count usage_count =...
0
by: Bob Weiner | last post by:
How do I remove the profilePath from a user with C#? The page, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sds/sds/directory_object_properties.asp seems like a good reference...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.