The fastest way to open Command Prompt as admin
The quickest method is to press Windows key + R, type cmd, then press Ctrl + Shift + Enter instead of just Enter. This opens Command Prompt with administrator privileges immediately, without extra steps.
If that keyboard shortcut does not work on your machine, the next-fastest route is to search for "Command Prompt" in the Windows search box, right-click the result, and select "Run as administrator" from the menu that appears.
Both methods bypass the standard Command Prompt window and give you the elevated permissions you need to run system-level commands. You will see "Administrator" in the title bar of the window when you have opened it correctly.
Key Takeaways
- Windows key + R, then typing cmd and pressing Ctrl + Shift + Enter opens admin Command Prompt in one action.
- Searching for "Command Prompt" and selecting "Run as administrator" from the right-click menu works on all Windows versions.
- You will see "Administrator" in the window title bar when you have the correct permissions.
- Some commands will fail silently or show an error if you run them in a regular Command Prompt instead of an admin one.
- Windows may ask for permission before opening the admin window — click "Yes" to proceed.
Using the search box method
Open the Windows search box by pressing Windows key alone, or by clicking the search icon in your taskbar. Type Command Prompt into the search field.
When "Command Prompt" appears in the results, do not click it directly. Instead, right-click on it and select "Run as administrator" from the context menu. A permission dialog may appear asking "Do you want to allow this app to make changes to your device?" — click "Yes" to continue.
This method works the same way on Windows 10 and Windows 11, and it is reliable if the keyboard shortcut does not work on your system.
Opening admin Command Prompt from File Explorer
You can also open an admin Command Prompt window from inside any folder. Hold Shift and right-click in an empty area of the File Explorer window. A context menu will appear with an option that says "Open PowerShell window here as administrator" on Windows 11, or "Open command window here" on Windows 10.
On Windows 10, if you see "Open PowerShell window here as administrator" instead, you can still use it — PowerShell runs the same commands as Command Prompt. If you specifically need the Command Prompt window, use one of the earlier methods instead.
This approach is useful when you need to run commands that affect files in a specific folder, because the window opens already pointed at that location.
What to do if a permission dialog appears
When you open Command Prompt as administrator, Windows may show a dialog asking "Do you want to allow this app to make changes to your device?" This is a security check called User Account Control. Click "Yes" to proceed, or "No" to cancel and close the window.
If you do not see this dialog, it may be because User Account Control is turned off on your system, or because you are already logged in as an administrator account. Either way, the Command Prompt window will still open with the permissions you need.
Verifying you have admin privileges
Look at the title bar of the Command Prompt window. If it says "Administrator: Command Prompt" or shows an admin shield icon, you have opened it correctly. If the title bar just says "Command Prompt" with no "Administrator" label, you do not have elevated permissions.
You can also type whoami /priv and press Enter. If the output includes lines with "Enabled" next to them, you have admin rights. If most lines show "Disabled", you opened a regular Command Prompt instead.
Troubleshooting if the window will not open
If the keyboard shortcut (Windows key + R, then Ctrl + Shift + Enter) does not work, your system may have a different configuration. Use the search box method instead — it works on all recent Windows versions.
If you see an error message like "Access Denied" when you try to run a command, you may not have admin privileges even though the window opened. Close it and use one of the methods described above to open a new one with the correct permissions.
If the permission dialog appears but you cannot click "Yes", your account may not have administrator rights on this computer. Contact your IT support or the person who manages this device.
Frequently Asked Questions
What is the difference between Command Prompt and PowerShell?
PowerShell is a newer tool that runs the same commands as Command Prompt, plus additional commands of its own. For most system tasks, either one works. If a guide tells you to use Command Prompt specifically, use Command Prompt; if it says PowerShell, use PowerShell. Both can be opened as administrator using the same methods.
Do I need admin Command Prompt to run every command?
No. Simple commands like ipconfig or dir work in a regular Command Prompt. Commands that change system settings, install software, or modify protected files require admin privileges. If a command fails with an "Access Denied" error, try running it in an admin Command Prompt.
Can I make Command Prompt always open as administrator?
Yes, but it requires changing a setting in the Command Prompt properties. Right-click the Command Prompt shortcut, select "Properties", go to the "Advanced" tab, check the box next to "Run as administrator", and click "OK". After that, Command Prompt will always request admin permissions when you open it.
What if I accidentally close the admin Command Prompt window?
Just open a new one using any of the methods above. There is no permanent state — each time you open the window, you start fresh. If you were running a long command, you will need to start it again.