Sometimes you need to use Command Prompt to run some programs or perform some other tasks. Many of command lines require administrator privilege, so many times you need to open Command Prompt as administrator. Now, here in this page we’ll show you how to open Command Prompt as administrator in Windows 10. Four ways are for your choices.
4 ways to open Command Prompt as administrator in Windows 10
Way 1: from Start menu search
Type command prompt (or cmd) in the Start menu search box. When the Command Prompt app appears in the search result, right-click on it and select Run as administrator.
Way 2: from Win + X menu
Right-click on the Win icon in the lower-left corner of Windows 10 desktop or simultaneously press Win + X keys on your keyboard to bring out the Power Users Menu (also called WinX menu). Then select Command Prompt (Admin) from the menu to open Command Prompt as administrator.
Note: If you see Windows PowerShell instead of Command Prompt in the Power Users Menu, see How to Replace Windows PowerShell with Command Prompt in WinX Menu.
Way 3: from Task Manager
Step 1: Right-click on any blank area of the taskbar, then select Task Manager from the menu. This will open Task Manager in Windows 10.
Step 2: Click File > Run new task on the menu bar.
Step 3: Type cmd in the Create new task dialog and click OK. Then Command Prompt will open as administrator.
Way 4: from File Explorer
Command Prompt is actually a cmd.exe application located in C:\Windows\System32 on the Windows system drive, so you can open command prompt as administrator from File Explorer.
Step 1: Open File Explorer in Windows 10.
Step 2: Navigate to C:\Windows\System32. Scroll down to find the cmd.exe program, then right-click on it and select Run as administrator from the context menu. From here, you also can pin Command Prompt to Start menu or taskbar for easier access.