I want to start a process as admin.
The admin creditials are hard coded so that users without knowing the admin creditials could open the process as admin.
I have tried
var process = new ProcessStartInfo
{
FileName = "path",
UserName = "userName",
Domain = "myDomain",
Password = mySecritPassword,
UseShellExecute = false,
Verb = "runas",
RedirectStandardError = true,
RedirectStandardInput = true,
RedirectStandardOutput = true
};
Process.Start(process);
But my process is starting without admin rights
Is there something i forgot?