Lỗi the command prompt has been disabled by your administrator năm 2024

Registry Editor is an in-built tool in Windows which is used to view and edit the Windows Registry. You can use it to easily enable the Command Prompt by simply modifying a registry key. To do so, follow these steps:-

  1. Go to Start>Search.
  2. Type regedit and press Enter.
  3. Registry Editor will start. If it is disabled, you will need to enable Registry Editor first.
  4. Navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System from the left hand column. If the Windows key is not there, you will need to create a new key called Windows by right clicking on the Microsoft key and selecting New>Key option. Also, if the System key is not there, you will need to create it by right clicking on the Windows key and selecting New>Key option.
  5. In the work area on right side, double click on DisableCMD and set its value to 0. If you cannot locate DisableCMD, you will need to create a new DWORD value called DisableCMD with 0 as its value by right clicking in the work area and selecting New>DWORD value.
  6. Close the Registry Editor.

Lỗi the command prompt has been disabled by your administrator năm 2024
The Command Prompt in Windows 8

The command prompt should immediately be accessible. If it isn't, restart your computer.

Enable Command Prompt by simply running a command

If you are unfamiliar with directly editing the Registry, you can use a simple command to quickly enable the Command Prompt. Just follow these steps:-

  1. Click on Start and go to Run. Users of Windows 10, Windows 8.1, Windows 8, Windows 7 and Windows Vista, go to Search > Run. Alternatively, use the Windows key+R keyboard shortcut to directly open the Run dialog box.
  2. Copy and paste the following command and execute it by pressing Ctrl+Shift+Enter keys simultaneously if you use Windows 10, Windows 8.1, Windows 8, Windows 7 or Windows Vista. Users of Windows XP can simply execute this command in an Administrator account by pressing the Enter key.
    REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f
  1. This should enable the Command Prompt. If it is still not enabled, restart your computer.

The methods mentioned in this article work on Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista and Windows XP.

After you open Command Prompt in Windows 10, the window immediately exits when you press any key. You open CMD again wanting to see the cause and find "The command prompt has been disabled by your administrator" showing on the screen.

Lỗi the command prompt has been disabled by your administrator năm 2024

Then what should be done to fix the problem so that you can open and use CMD normally? Now, this post will show you three options to re-enable Command Prompt disabled by the administrator in Windows 10. The methods also work on other Windows versions.

Option 1: Use GPEDIT to enable Command Prompt disabled by the administrator

Step 1: In the Windows 10 Start menu, type gpedit.msc. Then click gpedit in the program list to open Local Group Policy Editor.

Step 2: Navigate to User Configuration > Administrative Templates > System. Click on the System entry, then on the right-side pane, double-click on Prevent access to the command prompt.

Lỗi the command prompt has been disabled by your administrator năm 2024

Step 3: Check Not Configured or Disabled, and then click Apply and OK. Then you can open and use Command Prompt normally.

Lỗi the command prompt has been disabled by your administrator năm 2024

Option 2: Use REGEDIT to fix "The command prompt has been disabled by your administrator"

Tips: You will need to edit Registry. It's a good idea to firstly backup your Windows 10 registry if you fear to make a mistake.

Step 1: Press Win + R keys to bring out the Run dialog. Type regedit and click OK to open Registry Editor.

Step 2: Navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System. Click on the System entry, and then on the right-side pane, double-click on the DisableCMD key.

Lỗi the command prompt has been disabled by your administrator năm 2024

Tips: If you can't find the System key under Windows, you need to create a new key and name it System. If you can't find the DisableCMD key, create a new DWORD value and name it DisableCMD.

Step 3: Set the value data to 0 and click OK. Then you can open and use Command Prompt normally.

Lỗi the command prompt has been disabled by your administrator năm 2024

Option 3: Use Run command to enable command prompt disabled by the administrator

Tips: This way only works when you've signed into Windows 10 as the built-in administrator.

Step 1: Press Win + R to bring out the Run dialog. Then type REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f in the box and then click OK.

Lỗi the command prompt has been disabled by your administrator năm 2024

Step 2: When you see a command prompt window flash by, the disabled Command Prompt is re-enabled successfully and you can use it to work normally.