cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.81k stars 2.02k forks source link

Question: Running non-administrator command prompt inside an administrator Cmder console #2829

Closed holahapi closed 1 year ago

holahapi commented 1 year ago

Question

How can I open a non-administrator command prompt inside an administrator Cmder console?

Checklist

daxgames commented 1 year ago

Did you run cmder.exe as administrator?

holahapi commented 1 year ago

yes, I did.

I ran cmder.exe as administrator because some of my scripts require elevated privileges to run. To avoid being prompted by Windows every time I run them, I prefer to run cmder.exe with admin rights. However, for the scripts that don't require admin access, I'd like to run them in non-admin mode.

daxgames commented 1 year ago

Then I would suggest running Cmder.exe as a normal user and then a run cmd::Cmder as Administrator tab to do administrative tasks in because you can't de-elevate permissions if Cmder.exe is launched with elevated permissions.

holahapi commented 1 year ago

Thank you, I think I will just keep running Cmder.exe as a normal user as you suggested.