DirectoryEntry how to make a copy of a user account?
Posted on 2015-02-10
Hi, I'm using VS2012.
It turns out the DirectoryEntry.Copy method isn't implemented for LDAP, majority of network out there I think.
I googled trying to find code already written out there for this but didn't find any. Appreciated it if you know where it is and provide links to it.
If i were to write my own CopyTo mehtod, please provide guideline. I can create a user where I want it. Now, do I loop though all properties of the other user account (except for samaccount, upn and parentid, and what else?0 properties and copy them?