This article was co-authored by Ken Colburn and by wikiHow staff writer, Hannah Dillon. Ken Colburn is a Consumer Electronics Expert and the Founder & CEO of Data Doctors Computer Services. With more than 34 years of experience, he specializes in computer checkups and repairs, data recovery, and teaching others about technology. Ken also provides one-minute tech tips through his broadcast, Data Doctors Tech Tips.
This article has been fact-checked, ensuring the accuracy of any cited facts and confirming the authority of its sources.
This article has been viewed 277,437 times.
This wikiHow will show you how to open the Windows Command Prompt as an administrator. The methods in this article work for both Windows 10 and Windows 11, though some are specific to Windows 10 only. This can be done easily if you’re logged in to a user account that has administrator privileges. Running the Command Prompt as an administrator gives you access to more commands and permissions.
Quick Steps
- Type "cmd" in the taskbar search bar.
- Right-click "Command Prompt" in the Start menu that pops up.
- Click Run as administrator.
Steps
-
Type cmd in the taskbar search bar. Consumer electronics expert Ken Colburn says that opening Command Prompt, which is a command line interface on your computer, is as simple as just typing "cmd" into your search bar.[1]
-
Advertisement
-
Click Run as administrator. This is the top option in the right-click menu.[2]
- Click Yes when prompted, "Do you want to allow this app to make changes to this device?"
-
Press ⊞ Win+R. This will open the Run dialog box, where you can enter simple commands.
-
Type cmd into the field next to "Open." However, don't click OK or press ↵ Enter just yet.
-
Press Ctrl+⇧ Shift+↵ Enter. You'll want to hold down each button as you click it. So, press and hold Ctrl, then press and hold ⇧ Shift, then finally, press and hold ↵ Enter. Once you've held down all three keys at once, you can release them.
- This will make Run open Command Prompt as an administrator.
-
Press ⊞ Win+R. This will open the Run dialog box, where you can enter simple commands.
-
Type runas /user:Administrator cmd into the field next to "Open." Once you do so, press ↵ Enter to run the command.
-
Enter your admin password in Command Prompt. You'll be prompted to enter your password once CMD opens. You'll need to type in the administrator password to continue; if you're the only user on your computer, you should be the admin by default.
-
Right-click the Windows button in the taskbar. It's in the bottom-left corner of the screen, in the taskbar. Alternatively, you can press ⊞ Win+X to open this menu.
-
Click Command Prompt (Admin). Alternatively, if you pressed ⊞ Win+X to open the Power User menu, you can press A to choose the Command Prompt (Admin) option (you'll see the word Admin has the A underlined, which means you can press that key to select that option). You can't press A to select this option if you right-clicked on the Windows icon.
Community Q&A
-
QuestionIs there a command to activate admin cmd while already in normal cmd?
ArroganceTop AnswererYou can launch a new elevated Command Prompt window with "powerShell -Command Start-Process cmd -verb RunAs". You cannot launch a new elevated prompt in the same window. -
QuestionWhen I click manage account on my admin account, it says manage another account and change password. What is going on?
Community AnswerPress the Windows key (Image titled Windowsstart.png) + S at the same time. This opens Windows search. -
QuestionHow do I undo run as administrator?
Liam TownsleyCommunity AnswerRestart your command prompt and it will no longer be an administrator terminal.
Video
Tips
-
You can type help to see a list of various commands and what they do.Thanks
-
You can type /? after a command to see the help information about that command.Thanks
-
For more Command Prompt tips, check out how to change a computer password in the Command Prompt and chat over LAN using the Command Prompt.Thanks
Warnings
- Be cautious when running commands in the Command Prompt as an administrator. You can do permanent damage to your computer if you run the wrong command.Thanks
- Avoid running any random command you find on the internet. Some people will troll others by saying that you should run a command to fix a problem, but the command will actually damage your computer.
- Some commands that you should avoid running are "del", "rd", or "format", unless you know what you are doing. This list is not exhaustive, however, and other commands can still be dangerous.
Thanks
References
- ↑ Ken Colburn. Consumer Electronics Expert. Expert Interview
- ↑ https://grok.lsu.edu/article.aspx?articleid=18026&printable=y
About This Article
1. Press the Windows Key + S.
2. Type cmd.
3. Right-click Command Prompt.
4. Click Run as administrator.












