Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
run.it -- as a non-privileged user?
#2
run.it always starts new process as not-admin. And there is flag to start as admin.

All other similar functions would start new process as admin if current process is admin. Including run.console, Process.Start, ShellExecute[Ex], CreateProcess.

Code:
Copy      Help
// script ""
print.it(uacInfo.isAdmin); //admin
run.it(folders.System + @"notepad.exe"); //not admin
run.it(folders.System + @"notepad.exe", flags: RFlags.InheritAdmin); //admin
Process.Start(folders.System + @"notepad.exe"); //admin


Messages In This Thread
RE: run.it -- as a non-privileged user? - by Gintaras - 01-31-2023, 05:38 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)