- Users rely on Command Prompt for certain functions, but unfortunately, many of them reported that they can’t run Command Prompt as administrator. The issue might be related to your user account, so a quick workaround is to create a new user account.
- As usually, installing the latest updates might certainly fix the issue at hand, but if not go ahead and read the complete solution in the article below.
- Troublesome Windows system errors can really affect your day to day productivity. To prevent any interruption we've compiled a list of common system errors.
- Are those annoying Windows errors creating a real problem for you? Go ahead and bookmark our specially created Windows 10 Errors Hub.
advanced users rely on Command Prompt for certain functions, but unfortunately, many of them reported that they can’t run Command Prompt as administrator. This can be a problem since you won’t be able to perform advanced commands that require administrative privileges.
Although this issue usually affects advanced users, it’s important to fix it, and today we’re going to show you how to do it.
Sometimes Command Prompt issues can appear on your PC and prevent you from running certain commands that require administrative privileges. Speaking of Command Prompt, here are some issues that users reported:
- Command Prompt admin won’t open Windows 10 – According to users, sometimes Command Prompt won’t open as administrator. This can be caused by your antivirus, so be sure to check it and restore quarantined files to their original location.
- Can’t run cmd as administrator Windows 7 – This issue can occur on Windows 7 as well, and if you encounter it, be sure to apply some of our solutions.
- Command Prompt not working in Windows 8 – Windows 8 users also reported this issue, and to fix it, simply create a new user profile and check if that helps.
Can’t run Command Prompt as administrator on Windows 10, how to fix it?
- Check your antivirus
- Create a Command Prompt shortcut on your desktop
- Disable all non-Microsoft context menu items
- Create a new user account
- Install the latest updates
- Try using Safe Mode
1. Check your antivirus
According to users, one reason for problems with Command Prompt can be your antivirus software. Having a good antivirus is important, but sometimes antivirus can interfere with certain features or Windows, which can lead to this and many other problems.
If you can’t run Command Prompt as an administrator, you might want to try checking your quarantine list. Sometimes your antivirus may put certain files in there that the Command Prompt needs to work properly.
Check the list and make sure that quarantined items aren’t malicious before restoring them. According to users, Avast can put the consent.exe file in the quarantine and that will cause issues with Command Prompt, so be sure to restore this file.
Several users reported that restoring their quarantined files fixed the problem, so you might want to try that. If that doesn’t work, try disabling certain antivirus features and see if that changes anything. In case the problem is still there, try disabling your antivirus altogether.
In the worst-case scenario, you might even have to uninstall your antivirus. This is not a reason to worry since your system will be protected by Windows Defender even if you remove your antivirus.
In case that removing your antivirus solves the problem with Command Prompt, you should consider switching to a different antivirus solution.
Hence, if you want to find a capable and reliable antivirus that does not change your system settings, you should select a solution from the best antiviruses compatible with Windows 10.
2. Create a Command Prompt shortcut on your desktop
Many users reported that they can’t run Command Prompt even by using the Win + X menu on their PC. If you can’t run Command Prompt as an administrator at all, you might be able to circumvent this problem with this simple workaround. To create a Command Prompt shortcut on your desktop, just do the following:
- Open File Explorer and head over to the C: UsersDefaultAppDataLocalMicrosoftWindowsWinXGroup3 directory.
- In there you should see two Command Prompt shortcuts. Try running these shortcuts and make sure that they work. If they do, copy both of them to your desktop and try running them from there.
Since there are two shortcuts, it means that you have non-administrative and administrative Command Prompt available. You can easily recognize the administrative Command Prompt since its window will be labeled Administrator: Command Prompt once you start it.
Alternatively, you can just create a new shortcut right on your desktop without copying anything. To do that, just follow these steps:
- Right-click your desktop and choose New > Shortcut.
- In the Type the location of the item field enter the cmd.exe command and click Next.
- Enter the desired name of the new shortcut and click Finish.
Expert Tip: Some PC issues are hard to tackle, especially when it comes to corrupted repositories or missing Windows files. If you are having troubles fixing an error, your system may be partially broken. We recommend installing Restoro, a tool that will scan your machine and identify what the fault is.
Click here to download and start repairing.
Now you just have to force the new shortcut to run with administrative privileges. This is quite simple to do, and you can do it by following these steps:
- Right-click the newly created Command Prompt shortcut and choose Properties from the menu.
- Go to the Security tab and click the Advanced button.
- Check Run as administrator and now click OK.
- Save changes.
Now you can just double-click the new shortcut and the Command Prompt will start with administrative privileges.
Keep in mind that this is just a workaround, but this solution should be useful until you manage to fix the core problem.
3. Disable all non-Microsoft context menu items
According to users, sometimes your context menu can cause this problem to appear. If you can’t run Command Prompt as an administrator, perhaps other applications are causing this error. Sometimes applications will add their own entries to the context menu and that can lead to this and many other problems. However, you can fix that by doing the following:
- Download and run ShellExView. This is a freeware third-party application.
- Once you start it, you need to find all non-Microsoft entries in your context menu and disable them.
After doing that, the problem should be fixed. Almost any application can cause this problem, but few users reported issues with Express Zip File Compression (NCH Software), so if you’re using it, be sure to disable its entries from the context menu.
Keep in mind that this is an advanced solution, so you’ll need to get familiar with ShellExView a bit before you can fully apply this solution.
4. Create a new user account
If you can’t run Command Prompt as an administrator, the issue might be related to your user account. Sometimes your user account can get corrupted, and that can cause the issue with Command Prompt. Repairing your user account is quite hard, but you can fix the problem simply by creating a new user account. To do that, just follow these steps:
- Open the Settings app and navigate to the Accounts section. To open the Settings app quickly, just use Windows Key + I shortcut.
- Select Family & other people from the menu on the left. Now click Add someone else to this PC button in the right pane.
- Choose I don’t have this person’s sign-in information.
- Select Add a user without a Microsoft account.
- Enter the desired username for the new account and click Next.
After creating a new user account, switch to it and check if the problem is still there. If the issue with Command Prompt doesn’t appear on the new account, move your files to the new account and start using it instead of your old one.
5. Install the latest updates
According to users, sometimes you can’t run Command Prompt as administrator due to certain bugs on your system. Bugs can occur for various reasons, and Microsoft is usually quick to fix any major bugs that might occur. If Command Prompt can’t run on your PC, perhaps you can fix the problem simply by installing the latest updates.
Windows 10 installs the missing updates automatically, but sometimes you might miss a couple of updates. However, you can always check for updates manually by doing the following:
- Open the Settings app and navigate to the Update & Security section.
- Click the Check for updates button in the right pane. Windows will now check for updates and download them in the background.
Once the updates are downloaded, they will be automatically installed as soon as you restart your PC. After your PC restarts, check if the problem with Command Prompt is still there.
6. Try using Safe Mode
Safe Mode is a special segment of Windows that runs with default settings, and it’s usually a good place to start the troubleshooting process. If you can’t run Command Prompt as an administrator, perhaps you should be able to solve the problem by accessing Safe Mode. To do that, just follow these steps:
- Open the Settings app and head over to the Update & Security section.
- Pick Recovery from the menu on the left. In the right pane click the Restart now button.
- Choose Troubleshoot > Advanced options > Startup Settings. Now click the Restart button.
- As soon as your PC restarts, you should see a list of options. Select the desired version of Safe Mode by pressing the corresponding keyboard key.
Once you enter Safe Mode, check if the problem is still there. If the issue doesn’t appear in Safe Mode, you can start troubleshooting the issue from there.
If you can’t run Command Prompt as administrator on your PC, that can be a big problem, especially for advanced users that rely on the command line. However, we hope that you managed to solve this problem by using one of our solutions.
Frequently Asked Questions
By default, Windows will launch in restricted mode unless users specifically accept the elevation confirmation. For command prompt, the commands may refuse to run or have access denied error. This is why users need to launch command prompt will full admin rights and permission state. This state will grant full access to all commands.
In the elevated command prompt window type the name of the file directly if it is a .exe file, for example, setup.exe and press Enter to immediately run the installer with administrative permissions.