I'm accustomed to opening a shell in Windows with the keyboard, but when I want admin privileges, the only way I know is to right click on the start menu icon.
There must be a keyboard-only way, right?
Option 1 - requires that you use the Vista-style Start Menu
cmd
Option 2 - works with Classic Start Menu, requires Quick Launch to be enabled
Do this:
i'm using ColorConsole instead of the windows command prompt (the reason being not so much the variety of colour schemes but the favorite commands, copy/paste, tabbed interface and HTML export. you're probably asking this question to save time, so CC will save you even more). i have set CC to run always as admin from the advanced shortcut properties menu, of course you can do that with CMD.EXE too. just create a new shortcut for cmd.exe, make it to run always as admin and assign a hotkey to this shortcut.
My preferred way:
cmd
into the text field Depending on your settings you might need to press Enter to acknowledge UCA promt.
This only works if your user has admin rights, if not I would recommend EBGreen's answer (runas /user:administrator cmd.exe).
already discussed good options (possibly better than mine) however I personally press start / Windows flag button on my keyboard and type cmd, then press the context menu button (between right windows flag and Ctrl then press down and enter.
Windows 10:
Method 1
cmd
in the textboxMethod 2
cmd
in the textboxMethod 3
cmd
Method 4 (If you have Replace Command Prompt with Powershell in Win+X menu setting enabled)
Command Prompt (Admin)
Some ways can work with earlier versions to (Especially 1).
You can launch Command Prompt with admin privileges without using a mouse. First, you need to open a Run box by pressing Windows + R keys. Type “cmd” into the box and then press Ctrl+Shift+Enter to run the command as an administrator.