How to fix Command Prompt Access denied to Administrator in Windows 11/10

Several users have claimed Command Prompt Access denied to Administrator in Windows 11/10 while accessing the command prompt on Windows. The error message including access denied indicates that something wrong with specific apps, files, directories or commands in the command prompt. Well it is quite clear from the error message that the users don’t have sufficient permission to access specific files/ commands and there is conflict of rights and permissions.

Though the reason error is completely clear and there’s no requirement of discussing a lot about the reasons of the error. So let us waste no further time in digging out the source of the error and discuss the troubleshooting methods.

How to resolve Command Prompt Access denied to Administrator in Windows 11/10

Method 1: Disable UAC

User Account Control plays a vital role while opening certain apps, including Command Prompt. So in order to resolve the above mention error we suggest you to disable UAC.

To do the same follow the below mention guidelines:

Step 1: Open regedit and go to the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System

Now change the value of EnableLUA key, from its default 1 to Value data 0. It will disable the User Account Control.

Method 2: Use Terminal

Terminal allows users to use Command Prompt as well Windows PowerShell, so you can use it in order to resolve your trouble. To open the Terminal on your keyboard press Win + X keys and then click on the Terminal option.

Method 3: Scan for Adware and Malware

In some cases adware and malware are the real culprits that prevent users from opening various apps. And it really doesn’t matters whether it is a third party app or an in-built utility they can block the user from opening the app on your System. So we suggest you to scan for malware and adware on your machine to tackle this situation.

Method 4: Use in-built Administrator Account

In this method we suggest you to enable or disable the in-built Administrator account and to do the same follow the below mention suggestions:

Step 1: To enable, activate, or turn on this built-in Administrator account, then type CMD in search box. CMD will appear at the top and then right-click on it to “Run as an Administrator”

To enable this built-in Administrator account, type this command & press Enter key:

Net user administrator /active:yes

To disable the built-in Administrator account, type this command and press Enter key:

Net user administrator /active:no

If you decide that you need a password for the administrator’s account that you are going to activate or if you are unable to activate it with a blank password run the following commands.

Net user administrator [email protected]$$w0rd

Net user administrator activate:yes

You will get a message: The command completed successfully. (Where [email protected]$$w0rd has been taken as an example password)

Method 5: Verify Group Policy Settings

If you are still struggling with Command Prompt Access denied to Administrator in Windows 11/10 then we suggest you to verify Group Policy Settings.

Group Policy Settings allows or blocks users from opening the command prompt on their PC. And if you have turned this settings unintentionally, you cannot access Command Prompt.

Follow the below mention guidelines to proceed:

Step 1: On your keyboard press Win + R keys to open Run Prompt> then type in gpedit.msc and press Enter key

Step 2: Navigate to this path: User Configuration > Administrative Templates > System

Step 3: Then double-click on the Prevent access to the command prompt setting> choose the Not Configured option> tap on the OK button

Once done then see if the issue resolved or not.

Method 6: Check the Registry Values

If none of the above mentioned methods works for you then we suggest you to check the Registry Values. And in order to disable the Registry Setting and open Command Prompt, follow the below mention guidelines:

Step 1: Under the Taskbar Search box, look for regedit> now click on the individual search result

Step 2: Click Yes option in the UAC Prompt > Navigate to this path: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System

Step 3: Now right-click on the DisableCMD REG_DWORD value> select the Delete option

Step 4: And then tap on the Yes button > finally close all Windows and Restart your PC.

Method 7: Go for a PC Repair Tool

If none of the above mentioned manual methods works for you then we suggest you to run a PC Repair Tool to scan your repositories as corrupted system files are also one of the major reasons for facing the above mention error. This is an expert tool and will repair all your corrupted files in just a single go without any hassles.

⇑Get PC Repair Tool from Here⇓

That’s all folks! We assume this blog was helpful for you.

Thanks for Reading.

Sakshi Anant Author

Leave a Reply