DirectoryEntry.CopyTo Not Implemented!!

  • Thread starter Thread starter Davie
  • Start date Start date
D

Davie

..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")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top