logo
Windows 10 Command Prompt Has Been Disabled | What to Do

Command Prompt Has Been Disabled | What to Do

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.

message about command prompt disabled

Method 1: Enable Command Prompt in Windows 10 Using Group Policy Editor

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.

open group policy editor

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.

open prevent access to the command prompt

Step 3: Disable or do not configure the setting.

Choose Not Configured or Disabled, and click OK.

choose disabled or not configured

Method 2: Run the Registry Command Quickly

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: