Add option to run a Tool with elevated privileges
See original GitHub issueDescription
I might want to run a CLI tool as administrator. An example for that is to install or use Chocolatey.
This can be easily achieved if we add a flag in the Tool delegate and then if set to true to add a Verb in the ProcessStartInfo to start the process with elevation.
If you like the idea, I will go on and prepare a PR for adding it.
Alternatives
Not sure if there is an alternative at the moment. Maybe it is, but I can’t figure it out.
Issue Analytics
- State:
 - Created 4 years ago
 - Comments:5 (4 by maintainers)
 
Top Results From Across the Web
How to grant or get Elevated Privileges in Windows 11/10
1] Open elevated Command Prompt window · 2] Make program always Run as Administrator · 3] Turn off Admin Approval Mode using Secpol...
Read more >How to make programs always run as admin on Windows
Locate the "Privilege" level option within this menu, and check the “Run this program as an administrator” box.
Read more >How to run program from command line with elevated rights
Is there a way to run a program or command with elevated rights when I am already in a non-elevated command line? Exactly...
Read more >Installing a Package with Elevated Privileges for a Non- ...
An administrator can use the following methods to enable a non-administrator user to install an application with elevated system privileges.
Read more >[4 Ways] How to Open Elevated Command Prompt ...
Press Ctrl + Shift + Esc to open Task Manager in Windows 10. · Click File tab and choose Run new task. ·...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Not yet, please. Give me a little bit of time to try to figure out a way to do it. If not, I will close it in a few days.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.