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.
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!

20 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.

  2. Danie Erasmus

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

  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.

    1. Defiant Lion

      Maybe they don’t have the same version of Windows as you smart guy or maybe their not such a cool guy like you. Different situations that are more like problems seem to uprise with every update that we all seem to face, like buttons being greyed out or no access to a switch that was available to us recently, but is no where to be found or for some weird reason when we press on a button to go into settings it’ll stalls for a quick moment & kick us out & won’t let us access that certain setting. Obviously these problems we run into seem to out weigh you smart remarks attacking our complaints cause where not cool like you cool guy smart ass & we have nothing better to do than to shoot down the advice that these sites try to provide but doesn’t work for everybody cause we have nothing better to do but complain cause we don’t know what where doing, but you do Mike! Instead of adding on to the list of complaints in the comments how about providing us maybe with a solution than whinning with complainers you professional windows user. P.S. shut the fuck up if you ain’t going to help. Now I gave your dumbass something to complain about smart guy bitch!

  4. Loffie

    I upgrade to windows 10 and all outlook is gone

  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.

  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.

  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.

  8. mostafa

    this was very very very useful
    thanks a lot

  9. Ali

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

  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.

  11. asher

    How can l write this command prompt
    The syntax of this command is:

  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

    1. Sergey Tkachenko Post author

      Like this?

  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.

    1. David

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

  14. Rodney Keith

    Hello, how are you?

    1. Sergey Tkachenko Post author

      Hello, I am fine, thanks.

  15. jay freedom

    Hi, first time here possibly I should no better but I cant seem to find a DL for this ele.exe which would be the optimal solution for my purposes? Thank you OP


Leave a Reply

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