How to open elevated command prompt in Windows 10

In my articles, you often see instructions to open the command prompt as admin. In Windows 10 also, you will need to use it from time to time, so I would like to share with you the various ways to open an elevated command prompt. Let's explore them right now.


Before you start reading, I strongly recommend you to see my previous article, "Do you know all these ways to open an elevated command prompt in Windows?". It covers all the possible ways to open an elevated command prompt in previous versions of Windows. Many of the tricks from that article still work in Windows 10.

Opening an elevated cmd.exe from Power Users menu, or the Win+X menu

This way is very handy in Windows 10. Starting with Windows 8, Microsoft has implemented the Power Users menu, which contains many useful items like Control Panel, Network Connections and so on. Windows 10 also comes with such a menu. It contains the Command Prompt (Admin) item which is exactly what we need.

To access this menu in Windows 10, press Win + X shortcut keys together on the keyboard.

Tip: You can customize the Win+X menu with our freeware tool called Win+X Menu Editor. Check it out.

Update: This option has been removed in Windows 10 Creators Update. See the following article to learn about this change in detail: Windows 10 build 14986 replaces Command Prompt with PowerShell everywhere. To restore the command prompt in the Win +  X menu, see this tutorial: Add Command Prompt back to Win+X Menu in Windows 10 Creators Update.

Opening elevated cmd.exe via Windows 10 Start menu

In Windows 10, you can use the search box inside the Start menu. Type cmd there and press CTRL + SHIFT + ENTER to launch the command prompt elevated. This also works on the Start screen.

Windows 10 Search Open Cmd

Launch an elevated command prompt instance from a non-elevated one

You can launch an elevated instance of the command prompt from a non-elevated one. You might wonder why you would need to do this. Let me show you with an example scenario.
Whenever you press the SHIFT key and hold it and then right click on a folder in Explorer, you get the usual "Open command window here" menu item.
Open Command Window Here
This is very handy, you just opened a command window at the path you wanted. Now what if you need an elevated command prompt at that path? Command Prompt does not provide any way to open an elevated command window at the same path.

Update: The context menu option has been removed in Windows 10 Creators Update. You can restore it as follows:

Add Command Prompt to Context Menu in Windows 10 Creators Update

To resolve this issue and improve usability, you can use a little application I coded called ELE. It is able to reopen an already opened command prompt as administrator and keeps the current path.

Usage of ELE:
Simply typing ele - opens a new console window as administrator in the current directory.
ele /x - opens a new console window in the current directory and closes the original console window. If ELE is started from a file manager, it just opens a new elevated console at the current path.
ele
Copy-paste ele.exe in any folder which is included in your system %PATH% environment variable, e.g. C:\Windows or C:\Windows\system32. That will make it accessible from any folder and you won't need to type the full path to ele.exe every time you want to elevate the command prompt.

That's it!

17 thoughts on “How to open elevated command prompt in Windows 10

  1. Sharon

    Hi Guys, I’m having problems with windows 10, so before I uninstall it, I tried what you wrote and unistalled HMA 1st, now I cant find a way of installing it again, I’m in a country where all this stuff is blocked so now I’m stuck.
    Please help.
    Thanks.

    Like or Dislike: Thumb up 5 Thumb down 2

    Reply
  2. Danie Erasmus

    I followed all your instructions ,but it seem windows 10 is as bad as 8.Nothing downlowd

    Poorly-rated. Like or Dislike: Thumb up 3 Thumb down 12

    Reply
  3. Mike

    There is nothing wrong with Windows 10. Spend more than a few minutes trying to learn where all of the settings are and you wouldn’t be complaining.

    Poorly-rated. Like or Dislike: Thumb up 18 Thumb down 24

    Reply
  4. Loffie

    I upgrade to windows 10 and all outlook is gone

    Poorly-rated. Like or Dislike: Thumb up 2 Thumb down 8

    Reply
  5. Taha

    Having a great experience of using windows 10.

    Simply Awesome and Cool.

    Outlook works great.

    I don’t understand why you people are complaining windows 10.

    Hot debate. What do you think? Thumb up 14 Thumb down 16

    Reply
  6. Christian

    I apologize for such a noob question but I can’t seem to get to C:\users\christian\App Data\Roaming using an elevated cmd prompt. I used to just type in a hidden path in windows start but Windows 10 doesn’t have one.
    Thanks so much for any help you could provide.

    Like or Dislike: Thumb up 4 Thumb down 2

    Reply
  7. Christian

    Just answered my own question. All I had to do was unhide my folders from c:\users down. I can see AppData and all the folders down the path. Hope this can help someone else.

    Like or Dislike: Thumb up 3 Thumb down 3

    Reply
  8. mostafa

    this was very very very useful
    thanks a lot

    Like or Dislike: Thumb up 2 Thumb down 2

    Reply
  9. Ali

    i try this but it gives me a erroe 0x800f081f. can u plz help me

    Like or Dislike: Thumb up 1 Thumb down 1

    Reply
  10. asdf

    Thanks for posting this. The old ‘start a cmd window and do runas /user:someadminaccount’ thing doesn’t work anymore on 10 apparently.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
  11. asher

    How can l write this command prompt
    The syntax of this command is:
    NET USER
    [username[password|*][options]][/DOMAIN]
    username{password|*}/ADd[options][DOMAIN]
    username[/DELETE][/DOMAIN]
    Username[/TIMES:{times|ALL}]
    username[/ACTIVE:{YES|NO}]

    Like or Dislike: Thumb up 0 Thumb down 1

    Reply
  12. Anirudh

    hey guys i am using windows 10. now i can’t open cmd as administrator because every time i follow instructions from websites here appears a box where an administrator password is required and there is no space to fill the password. Please help me!!!!! Please

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      Like this?
      https://winaero.com/blog/fix-yes-button-disabled-in-uac-dialogs-in-windows-10-windows-8-and-windows-7/

      Like or Dislike: Thumb up 1 Thumb down 0

      Reply
  13. David

    I tried the first two options, and all I got was a single delayed error box (after many attempts) that said something about not having a specified action and needing to download something.

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. David

      Never mind. (I don’t know how to delete a comment)

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply
  14. Rodney Keith

    Hello, how are you?

    Like or Dislike: Thumb up 0 Thumb down 0

    Reply
    1. Sergey Tkachenko Post author

      Hello, I am fine, thanks.

      Like or Dislike: Thumb up 0 Thumb down 0

      Reply

Leave a Reply

Your email address will not be published. Required fields are marked *