Fix Can’t Run CMD as Administrator in 7 Easy Steps

Try opening the Command Prompt in Safe Mode - it's easy!

Reading time icon 7 min. read


Readers help support Windows Report. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help Windows Report sustain the editorial team Read more

Key notes

  • Users rely on Command Prompt for specific functions, but unfortunately, many reported that they couldn’t run CMD as administrators.
  • The issue might be related to your user account, so a quick workaround is to create a new one.
  • Installing the latest updates might undoubtedly fix the issue, amongst other valuable solutions here.
How do I force Command Prompt to run as administrator?

Advanced users rely on Command Prompt for specific functions, but unfortunately, many reported that they couldn’t run CMD as an administrator.

This can be a problem since you won’t be able to perform advanced commands that require administrative privileges. Don’t worry, there are ways to fix Run as Administrator when it’s not working in Windows.

Sometimes Command Prompt issues can appear on your PC and prevent you from running specific commands that require administrative privileges. Speaking of Command Prompt, here are some problems that users reported:

  • Command Prompt admin won’t open Windows 10 – Your antivirus can cause this, 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 also occur on Windows 7. 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, create a new user profile and check if that helps.
  • Can’t run CMD as administrator Windows 11

Why can’t I run CMD as administrator?

This is usually the case when your user account does not have administrative privileges, or in simple words, it’s a Standard user account. In this case, you will be asked to enter the administrator password each time you run CMD as an administrator.

Third-party antivirus is also known to cause problems for some users, and disabling it did the trick.

Besides, if your current user profile or the system files are corrupt, there’s a chance that Command Prompt won’t open as an administrator in Windows.

What should I do if CMD is not running as administrator?

Before we get to the slightly time-consuming solutions here, let’s first try a few quick fixes and see if this help resolve things:

  • Restart the computer
  • Check the antivirus and verify that Command Prompt or any related process has not been disabled or added to the Quarantine list.
  • You may even disable the antivirus for a short while to verify the same. Avast, for instance, has been found to cause this issue.

If these didn’t work, fret not! The ones listed next surely will help you deal with the Administrator Access Denied error messages.

1. Use Command Prompt

  1. Press Windows + R to open Run, type cmd, and click OK to run Command Prompt with standard privileges.cmd to fix can't run cmd as administrator
  2. Paste the following command and hit Enter:powershell -command "start-process cmd -verb runas"command to fix can't run cmd as administrator

This way, you can run CMD as administrator from the command line in Windows 10 and 11.

2. Create a Command Prompt shortcut on your desktop

  1. Press Windows + E to open File Explorer and navigate the following path: C:\Users\Default\AppData\Local\Microsoft\Windows\WinX\Group3
  2. Run the Command Prompt shortcuts here and make sure that they work. If they do, copy both to your desktop and run them from there.
    Command Prompt admin won't open Windows 10

Since there are two shortcuts, you have non-administrative and administrative Command Prompt available. You can easily recognize the administrative Command Prompt as its window will be labeled Administrator: Command Prompt once you start it.

Alternatively, you can create a new shortcut on your desktop without copying anything. To do that, follow these steps:

  1. First, Right-click your desktop, select New and then click on Shortcut.
    Command Prompt admin won't open Windows 10
  2. In the text field, enter cmd.exe and click Next.
    Can't run cmd as administrator Windows 7
  3. Enter the desired name of the new shortcut and click Finish.
    Command Prompt not working in Windows 8

Now you have to force the new shortcut to run with administrative privileges. Here’s how you can do that:

  1. Right-click the newly created Command Prompt shortcut and choose Properties from the menu.
    Can't run cmd as administrator Windows 7
  2. Go to the Shortcut tab and click the Advanced button.
    Command Prompt admin won't open Windows 10
  3. Check Run as administrator, and now click OK.
    Can't run cmd as administrator Windows 7
  4. Save changes.

You can double-click the new shortcut, and the Command Prompt will start with administrative privileges.

Remember that this is a workaround, but this solution should be helpful until you fix the core problem.

3. Disable all non-Microsoft context menu items

  1. Go to the ShellExView website, scroll to the bottom, and download the third-party application.shellexview to fix can't run cmd as administrator
  2. After launching the program, you need to find all non-Microsoft entries in your context menu and disable them.

According to users, sometimes your context menu can cause this problem to appear. For example, if you can’t run Command Prompt as an administrator, perhaps other applications are causing this error.

Sometimes applications will add their entries to the context menu, which can lead to many other problems. And, ShellExView should come to your aid in this case.

Almost any application can cause this problem, but a few users reported issues with Express Zip File Compression (NCH Software). So if you’re using it, 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

  1. Press Windows + I to open Settings, and click on Accounts.
    Can't run cmd as administrator Windows 7
  2. Select Family & other people from the left, and click on Add someone else to this PC.
    Command Prompt not working in Windows 8
  3. Choose I don’t have this person’s sign-in information.
    Command Prompt admin won't open Windows 10
  4. Select Add a user without a Microsoft account.
    Can't run cmd as administrator Windows 7
  5. Enter the desired username for the new account and click Next.
    Command Prompt not working in Windows 8

Sometimes your user account can get corrupted, and that can cause an issue with Command Prompt. Repairing your user profile is difficult, but you can fix the problem simply by creating a new user account.

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 there and start using it instead of your old one.

5. Install the latest updates

  1. Press Windows + I to open Settings and navigate to the Update & Security section.
    Command Prompt not working in Windows 8
  2. Click the Check for updates button in the right pane. Windows will now check for updates and download them in the background.
    Command Prompt admin won't open Windows 10
  3. You will have to restart the computer for the updates to install completely.

According to users, sometimes, you can’t run CMD as an administrator due to specific bugs in Windows. However, Microsoft is usually quick to fix any major bugs that affect the user experience. So, check for updates, and install them if any are available.

6. Run CMD as administrator from Task Manager

1. Press Ctrl + Shift + Esc to open the Task Manager.

2. Go to the File menu and select Run new task.

go to file menu

3. Type cmd.exe in the text field.

4. Check the Create this task with administrative privileges box, and click OK.

open cmd

5. Command Prompt will be launched on your PC.

The Task Manager can provide a solid alternative if you can’t run CMD as an administrator directly. Basically, you need to launch Task Manager and configure it to open Command Prompt.

Also, find out how to open a file or a folder in the Command Prompt.

7. Try using Safe Mode

Safe Mode is a particular segment of Windows that runs with default settings, and it’s usually a good place to start the troubleshooting process.

For example, if you can’t run Command Prompt as an administrator, perhaps you should be able to solve the problem by accessing Safe Mode.

Once you enter Safe Mode, try launching CMD as administrator, and if you see a black screen, run the following two commands while replacing the password in the second command with the one you want to set:

net  user  Administrator  /active:yes net  user  Administrator  password

This fix has been confirmed by users and would help get things running when you can’t run CMD as an administrator.

Also, as an additional piece of advice, you may run CMD as an administrator in folder by right-clicking anywhere in the blank portion and selecting Open in Terminal.

Alternatively, Windows 10 users can navigate to the desired folder and press Alt + F + S + A.

Tell us which solutions worked for you in the comments section below. Also, if you managed to fix things with another method, do let us know.

More about the topics: command prompt