Most of the time, all you need to do is open Command Prompt as a regular user. However, sometimes you need to open the command prompt as an administrator so that you can run commands that require administrator rights.
Windows offers many different ways to open the command prompt, and many of those methods also allow you to open the command prompt with administrator privileges. We̵
Option one: use the start menu
You can also open an administrator command prompt with just the Start menu (or the Start screen in Windows 8). Press Start, type “command” and you will see “Command Prompt” as the main result. Right-click on that result and choose ‘Run as administrator’.
When you start Command Prompt with administrator privileges, you will likely see a “User Account Control” window asking you to continue. Go ahead and click ‘Yes’.
Once you have opened the “Administrator: Command Prompt” window, you can run any command, whether it requires administrator rights or not.
Option two: use the Run box
If you are used to using the “Run” box to open apps, you can use that to launch the command prompt with administrator privileges. Press Windows + R to open the “Run” box. Type “cmd” in the box and then press Ctrl + Shift + Enter to run the command as an administrator.
Option three: use the Power Users menu (Windows + X)
Both Windows 8 and 10 offer a Power Users menu that you can access by pressing Windows + X or simply right-clicking the Start button. Choose “Command Prompt (Admin)” from the Power Users menu.
Note: If you see PowerShell instead of Command Prompt in the Power Users menu, that’s a switch that came about with the Creators Update for Windows 10. It’s really easy to switch back to showing Command Prompt in the Power menu Users if you want, or give PowerShell a try. You can do pretty much anything in PowerShell that you can do in the command prompt, plus a lot more useful stuff.
RELATED: How to restore Command Prompt to Windows + X Power User Menu
And with that, you have three very easy ways to run commands in Command Prompt window as an administrator.