By Jennifer | Last Updated
"When I open Command Prompt on a Windows 10 computer, a message pops up in the window, explaining that the command prompt has been disabled by administrator. Can anyone kindly tell me what I can do to solve this problem?"
If you're seeing the error "The command prompt has been disabled by your administrator", it usually means access has been blocked via Group Policy or the registry. Here's how to solve Command Prompt has been disabled issue.

Step 1: Open the Local Group Policy Editor.
Click the lower-left Start button, type group policy in the search box and tap Edit group policy in the results.

Step 2: Find and open the "Prevent access to the command prompt" setting.
In User Configuration/Administrative Templates/System, you can find and double-tap it.

Step 3: Disable or do not configure the setting.
Choose Not Configured or Disabled, and click OK.

You can directly open the Run dialog (Win + R), paste the following, then hit Enter:
REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f
After that, restart your computer and the issue should be resolved.
Related Articles:
How to Reset Windows 10 Forgotten Password
How to Bypass Windows 10 Password Login with/without Password
Easy Guide to Reset Windows 10 Admin Password Like an Expert
4 Tips to Change Windows 10 Password without Knowing Current Password
Can't Sign into Microsoft Account Windows 10 | Account Locked/Blocked