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

[Windows new feature] Open in shell with admin permissions #48

Open
d-ph opened this issue Mar 27, 2014 · 2 comments
Open

[Windows new feature] Open in shell with admin permissions #48

d-ph opened this issue Mar 27, 2014 · 2 comments

Comments

@d-ph
Copy link

d-ph commented Mar 27, 2014

Hello,

it'd be great if there is a Open in terminal with administrative permissions menu item on Ms Windows. It'd open a cmd with admin rights, so developers could perform administrative level stuff in opened file directory.

Thanks

@dzsessona
Copy link
Owner

Hello, to be honest i have no idea how to open a shell in windows as administrator, and after a bit of google i cannot find how to do it. To run a command you should be able to prefix it with runas /user:Administrator "cmdName parameters" but to open a shell as admin.... no idea! Please let me know if you find out.

@d-ph
Copy link
Author

d-ph commented Mar 28, 2014

Indeed, it's quite tricky and counter-intuitive to open a cmd.exe with Administrator rights via non-elevated cmd.exe. It's seems like the only solution is to include a Windows made shortcut .lnk in your plugin package, which has set an option Run as administrator, and that open the elevated shell via this shortcut (which will ask a user, whether he wants to grant Admin rights to this program). More info here. The first solution is what I explained here. You can open the .lnk just like you would open an ordinary .exe in the cmd.exe.

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants