question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add option to run a Tool with elevated privileges

See original GitHub issue

Description

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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
totollygeekcommented, Mar 11, 2020

@totollygeek close this?

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.

0reactions
lock[bot]commented, Apr 2, 2020

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found