tools icon indicating copy to clipboard operation
tools copied to clipboard

Open Console or PowerShell ''As Admin''

Open a-raccoon opened this issue 4 years ago • 3 comments

I would like to recommend the ability to open the Console or PowerShell windows As Administrator by the user holding down Ctrl+Shift when they click on the toolbar icon. This is the natural Windows behavior when launching either from the Start Menu, or any application or file in Windows Explorer for that matter. Ctrl+Shift = Administrator

a-raccoon avatar Aug 01 '20 01:08 a-raccoon

Hold down the Win key, not Ctrl+Shift. Using Ctrl+Shift might work for clicks, but when you configure a hotkey, using Ctrl+Shift could cause problems.

stefankueng avatar Aug 03 '20 16:08 stefankueng

I don't understand your reply. The WinKey does nothing. The Ctrl+Shift behavior within Windows Explorer is the expected behavior and the only way to go. When you see Console or PowerShell being clicked, please check if the Ctrl+Shift keys are being held down, and if so, then RunAs Admin for either Console or PowerShell.

image

I'm not creating a hotkey. I'm asking you to bake this functionality into the toolbar using C++.

Thanks.

a-raccoon avatar Aug 04 '20 01:08 a-raccoon

when you click while you hold down the Win-key, then StExBar will start the command as Admin.

stefankueng avatar Aug 04 '20 15:08 stefankueng