Very new to C#, creating a small exe that will launch on startup for users, giving them a few options, connect to a terminal server, administration (will be password protected..somehow :) ) and Exit.
Now administration I want to launch Task Manager as another user, so my idea was to call cmd.exe with runas and launch it. However, I'm not having much luck, my below code just launches cmd.exe but none of the arguments I specified with it.
private void btnAdministration_Click(object sender, EventArgs e)
{
ProcessStartInfo processAdmin;
processAdmin = new ProcessStartInfo();
processAdmin.FileName = "C:\\Windows\\system32\\cmd.exe";
processAdmin.Arguments = "runas /user:admin C:\\Windows\\System32\\taskmgr.exe";
Process.Start(processAdmin);
}