DirectoryEntry.CopyTo Not Implemented!



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



.



Relevant Pages

  • DirectoryEntry.CopyTo Not Implemented!!
    ... 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. ... Dim newUsr As DirectoryEntry = copyFromUsr.CopyTo(copyFromUsr.Parent, ...
    (microsoft.public.dotnet.general)
  • DirectoryEntry.CopyTo Not Implemented!!
    ... 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. ... Dim newUsr As DirectoryEntry = copyFromUsr.CopyTo(copyFromUsr.Parent, ...
    (microsoft.public.windows.server.active_directory)
  • Re: LDAP Authentication
    ... >ich möchte mit einem .NET Programm einen LDAP-Server Knoten auslesen. ... >DirectoryEntry objDE; ... wie das bei OpenLDAP ist - aber in Active Direcotry ... ist der Standard-Users Container ein generischer Container, ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)