Home All Groups Group Topic Archive Search About

Execute app under different account.

Author
4 Apr 2006 6:19 PM
SStory
When you run a service you can execute an app under a different account.

I need to do that with a normal app.  I need to run it as admin, even though
I am not logged in as admin.

How can I do this in DOT NET?

thanks,

Shane

Author
4 Apr 2006 8:55 PM
Herfried K. Wagner [MVP]
"SStory" <nospam@nospam.com> schrieb:
> I need to do that with a normal app.  I need to run it as admin, even
> though I am not logged in as admin.
>
> How can I do this in DOT NET?

Keyword "impersonation".  If you are using .NET 2.0, simply pass username
and password to 'System.Diagnostics.Process.Start'.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>