-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable a command to run as Administrator #7068
Comments
I’m so happy to learn that there’s gsudo. It feels super elegant to me. I’m a little surprised that no one mentions gsudo in #146. |
The allow elevation issue and it's variants keeps getting duplicate reports. So there's nuggets of information spread all over the place (I learned about gsudo on one of them) |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Enable a solution into the terminal to run it from an elevated command shell (cmd/powershell).
I forget to run the terminal as admin, I think many people do it.
Proposed technical implementation details
It could great to use hot key to select "user " or "admin" shell.
{ "command": "RunAsAdmin", "keys": "ctrl+shift+a" }
The issue of forget to run the terminal as "admin":
"You may experience errors - many functions/packages require admin rights. Only advanced users should run choco w/out an
elevated shell. When you open the command shell, you should ensure hat you do so with "Run as Administrator" selected. If you are attempting to use Chocolatey in a non-administrator setting, you must select a different location other than the default install location."
This message is frequent, so I should to close the terminal and open it again as "admin".
The text was updated successfully, but these errors were encountered: