It turns out that we need to use CMD on our computer and we come across the annoying error of access denied to command prompt in Windows 10 and 11 What can we do? Solving this problem is not complicated at all and we will see it a little further down.

Command Prompt Access Denied in Windows 10 and 11

Use the built-in administrator account

The first thing we need to do when we come across this error while opening Command Prompt on our computer is to use the built-in administrator account. Many times, system administrators block different tools, including Command Prompt. In this case, we will have to have an administrator account to be able to access CMD.

The best we can do is enable or disable the built-in administrator account using the command prompt instance in the terminal. In case of having an account enabled, we can use it instantly.

Check group policy settings

There is a group policy setting that allows or prevents CMD from being opened on the computer. In case this configuration is activated by mistake, then we will encounter this problem. To fix it, we will do the following:

  • We press Windows + R to open the Run dialog box.
  • We will type gpedit.msc and press Enter.
  • Next, we will go to User Configuration > Administrative Templates > System.
  • We will have to double-click on the Prevent access to the command line setting.
  • Here we select Not configured.
  • To finish, we click OK.
YOU CAN ALSO READ:   How to wrap text around a table in Word

Check registry values to fix the command prompt access denied error

The same configuration that we discussed in the previous point, can also be activated or deactivated using the Registry Editor. In order to disable it, we will have to follow these steps:

  • Press the Windows key, type regedit and press Enter.
  • Once we have the Registry Editor open, we will go to this path through the left sidebar: HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsSystem
  • We right click on the DIsableCMD REG_DWORD value.
  • We will click on Delete and confirm.

For these changes to take effect, we will have to restart the computer.

Disable UAC to access command prompt

User Account Control, or UAC, has different permissions to open some settings, including Command Prompt. In this case, we can try disabling the UAC and check if this can solve the problem.

Scan for malware

There comes a point where we have to consider the possibility of having our computer infected by malware and that this prevents us from using different applications. We recommend using one of the best antivirus currently available to scan your computer for malware or adware.

Write A Comment