I want to open Powershell as an administrator (no problem if prompt for UAC to elevate) when i click to a button in Delphi.
Is it possible?
Thank you
I want to open Powershell as an administrator (no problem if prompt for UAC to elevate) when i click to a button in Delphi.
Is it possible?
Thank you
There may be easier ways, but this one works.
Create a CMD/BAT file a write this:
Save and execute it with Delphi using ShellExecute: