6 Ways to Open Command Prompt as Administrator in Windows 10

There are many situations where you need to use the command lines instead of the GUI apps and many of the command lines require the admin privilege in order to complete the mission. And those special command lines that requires admin privilege need a Command Prompt window that runs as local administrator. We’ve covered the number of ways to open a Command Prompt as Administrator on Windows 8.1. Now let’s see how many ways to do the same on Windows 10.

Option 1 – From Win+X menu

Press Win + X or right-click on Start Menu, a power menu pops up from the Start Menu with a list of mostly used admin tools. One of them is Command Prompt (Admin). Clicking on it will open the Command Prompt window with local admin privilege for you.

Win X menu on Windows 10

But wait, before you see Command Prompt (Admin) listed there, you need to turn off the option “Replace Command Prompt with Windows PowerShell…” in Taskbar and Start Menu Properties because Windows PowerShell is the default option in Win+X menu.

Taskbar and Start Menu Properties - 2015-09-08 10_19_56

Option 2 – From Cortana search box

Type Cmd in Cortana search box, right-click Command Prompt that pops up and choose Run as administrator.

CMD from Cortana

Option 3 – Pin and start from Start

From the screenshot above, you can right-click Command Prompt and choose to Pin to Start.

Pin CMD to Start

And once it’s Pinned, you can right-click it in Start and choose Run as administrator.

CMD as Administrator from Start

Option 4 – Pin and Run from Taskbar

You can also Pin the Command Prompt on to Taskbar. Once Pinned, you can right-click the icon, right-click again on Command Prompt that pops up, then choose Run as administrator.

Run CMD as administrator from taskbar

If you want the pinned icon always opened with admin right, here is a nice tip shared by our dear reader, Glenn1963:

Once pinned, you can also modify the Advanced Properties (Shift-right-click / Properties / Advanced) and always Run as administrator, so a single left-click is all that’s required.

Option 5 – From File Explorer

You can open Command Prompt as Administrator to any folder as well from File Explorer, just like it in Windows 8.

Open File Explorer, navigate to the folder you want to be in when Command Prompt window opens, and click File and choose Open command prompt as administrator.

Open CMD from File Explorer

You can make it easier by adding it to the Quick Access bar so next time you don’t need to open File menu but click the little icon in the Quick Access bar instead.

Add open command prompt to Quick Access

CMD in Quick Access bar in File Explorer

Option 6 – Run without UAC prompt

Lastly, if you are annoyed this UAC pop-up every time you open a Command Prompt window with local admin privilege,

cmd as administrator UAC

Here is a very cool tip that go through the steps on how to create a shortcut on desktop that opens Command Prompt as Administrator window without the UAC window.

Kent Chen

Microsoft MVP, IT Professional, Developer, Geek, and the co-founder of Next of Windows.

Last updated: 01/29/2016

Posted in: How to , Tips & Tricks
Discover more: ,