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