on-internet
← Community

asp.net run program with Administrator account

Stack Overflow ·

I need to run one console application from ASP.NET application using Administrator account and with Desktop interaction enabled. I have tried code below, console app runs ok but within NETWORK SERVICE account. Any ideas how to run console under Administrator account? string enginePath = Server.MapPath(@"~/engine/MyConsole.exe"); System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo(enginePath, ""); System.Diagnostics.Process p = System.Diagnostics.Process.Start(info); p.WaitForExit(); Regards, Tomas

Comments

Sign in or sign up to comment and upvote.

No comments yet.