Skip to content

Instantly share code, notes, and snippets.

@lmatt-bit
Created February 24, 2012 07:52
Show Gist options
  • Save lmatt-bit/1898840 to your computer and use it in GitHub Desktop.
Save lmatt-bit/1898840 to your computer and use it in GitHub Desktop.
run process as administrator
ProcessStartInfo psi = new ProcessStartInfo();
//psi.UseShellExecute = false; if uncomment this line, then you can not run as administrator
psi.Verb = "runas";
Process.Start(psi);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment