1

In Windows 10, how do I always launch Windows Command Prompt with administrator privileges? Is there a keyboard shortcut to launch Commmand Prompt in such a way?

I am not looking to go to the Start button/Run command and then type something to open an elevated Command Prompt.

Update:

I've already tried this registry change but it didn't work:

enter code here

  • so you mean typing: windows key -> type "cmd" -> ctrl + shift + enter doesn't count as a keyboard shortcut? – jiggunjer Nov 4 '15 at 13:15
0

To auto run CMD as admin each time it is simply clicked (without having to right-click or create additional shortcuts), there is an easy fix for this:

In the registry editor, navigate to "HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" (If there isn't a Layers folder, you'll have to create one*)

Right click Layers, select New -> String Value. Set the Name of your new String Value to the full path to command prompt. (i.e. "C:\Windows\System32\cmd.exe" without quotes)

Right click the new String Value and click "Modify...". Set the "Value data" to "RUNASADMIN" without quotes.

  • done as u recommended. still not working. using windows 10 enterprise – Reddy Nov 4 '15 at 4:48
  • 1
    I also tested this out of curiosity, this did not work for me either. – Brian Nov 4 '15 at 4:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.