2

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

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

1 Answer 1

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .