Skip to content
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

Closed
okantmav opened this issue Jul 25, 2020 · 5 comments
Closed

Enable a command to run as Administrator #7068

okantmav opened this issue Jul 25, 2020 · 5 comments
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.

Comments

@okantmav
Copy link

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".

@okantmav okantmav added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Jul 25, 2020
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 25, 2020
@dafzor
Copy link

dafzor commented Jul 26, 2020

See issue #146. In the meantime you have a great solution with gsudo.

Personally I've set up my powershell profile to override all chocolatey alias with:

function choco { gsudo choco @args }

@skyline75489
Copy link
Collaborator

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.

@dafzor
Copy link

dafzor commented Jul 27, 2020

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)

@zadjii-msft
Copy link
Member

There's also #632/#1032/#5000 tracking the mixed elevation of tabs, so I'm gonna close this as a collective dupe of all those threads.

/dup #146 #632 #1032 #5000

@ghost
Copy link

ghost commented Jul 27, 2020

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!

@ghost ghost closed this as completed Jul 27, 2020
@ghost ghost added Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Jul 27, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing.
Projects
None yet
Development

No branches or pull requests

4 participants