cmderdev / cmder

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

Question: Alias with admin permission #2923

Open leuchte opened 4 months ago

leuchte commented 4 months ago

Question

Hello,

until recently I had an older CMDER version installed (unfortunately I don't know which version). There I had defined some aliases that no longer work in the current version. In particular, alias that uses ConEmu switches "-cur_console" and "-new_console". For example, I have an alias with which I can edit the alias file directly:

salias=vim %SCRIPT_PATH%\cmder\config\user_aliases.cmd -new_console:n

Vim crashes directly after execution:

Crash after the option argument: "-new_console:n"

Another alias is to add a path to the environment variables:

path=setx /m OWN_PATHS "%OWN_PATHS%;$*" -new_console:abn

The error:

ERROR: Access to the registry path was denied.

As I said, all the commands worked with the old CMDER version. Is there a setting that will make this work again? And if not with switches, is there a way to run commands/aliases with admin rights, without to start a new console as admin?

Thank you very much.

Checklist