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

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.

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.

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

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.

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.

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.

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.

Command Prompt has been disabled by your administrator could appear when you open the CMD window in Windows 11/10. What should you do to solve this boring issue? Don’t panic and you can find 2 common fixes collected by MiniTool for troubleshooting.

On This Page :

As a command utility, Command Prompt can help you execute many commands to deal with tasks. In our previous post – Command Prompt Windows 10: Tell Your Windows to Take Actions, you can know some common commands it does.

But sometimes when you try to launch Command Prompt in Windows 11/10, you can see a message on the computer screen saying The command prompt has been disabled by your administrator, as shown below:

So, how can you fix this problem so that you can open and use Command Prompt as usual? Don’t worry about and it is easy to address it via some simple fixes. And now, let’s look through what you should do.

Fix 1: Enable Command Prompt via Group Policy

If you are using Windows Home Edition, this way doesn’t apply, and skip to the next method. For the Pro Edition or higher, you can edit something using Local Group Policy Editor to fix Windows 11/10 Command Prompt has been disabled by your administrator. See these steps below:

Step 1: In the search box, input gpedit and click Edit group policy to Open Local Group Policy Editor.

Step 2: Head to User Configuration > Administrative Templates > System.

Step 3: Locate Prevent access to the command prompt and double-click on this item, choose Not Configured or Disabled, and tap on Apply > OK.

Next, try to open Command Prompt and you won’t receive the error Command Prompt disabled by administrator in Windows 10/11.

Fix 2: Use Registry Editor to Enable Command Prompt

Sometimes you change the Windows registry incorrectly, leading to Command Prompt has been disabled by your administrator. So, go to check the registry and configure something properly to solve this error.

Tips:

Editing Windows registry can let your PC be at risk of an unbootable system, so you can choose to back up your Windows in advance with Windows backup software – MiniTool ShadowMaker or create a restore point. In case Windows fails to boot due to a mistake, you can easily restore the machine to an earlier state.

MiniTool ShadowMaker TrialClick to Download100%Clean & Safe

Step 1: Press Win + R on the keyboard, input regedit and click OK. When prompted by the UAC window, click Yes to continue.

Step 2: Navigate to the following path in Registry Editor: HKEY_CURRENT_USER\SOFTWARE\Policies\Microsoft\Windows.

Step 3: Expand Windows to find the System folder. If you don’t see it, right-click on Windows and choose New > Key, then name it System.

Step 4: Double-click on DisableCMD from the right pane and set its value data to 0. If you don’t see DisableCMD, right-click on the area, and choose New > DWORD [32-bit] Value to create the registry key.

Step 5: Restart the PC and see if you can enable Command Prompt.

Final Words

These are common fixes to solve the error Command Prompt has been disabled by your administrator Windows 11/10. If you now suffer from this frustrating issue, follow the given step-by-step guide to easily get rid of trouble.

About The Author

Position: Columnist

Vera is an editor of the MiniTool Team since 2016 who has more than 7 years’ writing experiences in the field of technical articles. Her articles mainly focus on disk & partition management, PC data recovery, video conversion, as well as PC backup & restore, helping users to solve some errors and issues when using their computers. In her spare times, she likes shopping, playing games and reading some articles.

Chủ Đề