impersonation - Run Code as a different user (C#) -
Is there a way to tell my code to run as a different user?
I have to call NetUserSetInfo through a PInvoke and I would call it as a separate user, is there any way to do this?
For cloning it is necessary to call some native API (i.e., logoner), perhaps 3 Not worth the posting page. There is a complete working sample on this page:
Note that there are significant security reasons for cloning. Make sure you follow best practices.
Comments
Post a Comment