DirectoryEntry.CopyTo Not Implemented!
- From: "Davie" <dxw@xxxxxxxxx>
- Date: Mon, 7 Aug 2006 13:37:47 +0100
..NET 2.0
I was hoping the CopyTo method would be just what I needed to create a new
user in the same container and with the same properties as an existing one.
Rather than have to create the user and configure all the properties
manually. Something like the code below. However, when I try this I get a
not implemented exception.
Am I doing something wrong? If this isn't possible, could someone suggest a
way to create a new user based on an existing one please.
Dim newUsr As DirectoryEntry = copyFromUsr.CopyTo(copyFromUsr.Parent,
"newUserName")
.
- Follow-Ups:
- Re: DirectoryEntry.CopyTo Not Implemented!
- From: Marc Scheuner
- Re: DirectoryEntry.CopyTo Not Implemented!
- Prev by Date: Re: DataGridViewCheckBoxColumn
- Next by Date: Re: Disable Resizable Form
- Previous by thread: InitializeComponent() No Longer Being called
- Next by thread: Re: DirectoryEntry.CopyTo Not Implemented!
- Index(es):
Relevant Pages
|