How to Fix The Command Prompt Has Been Disabled by Your Administrator Error Message
When you attempt to run Command Prompt (CMD.exe) or a batch file, you may receive the message "The command prompt has been disabled by your administrator". This is caused by restrictions placed in Registry. The DisableCMD value data is set to 1 or via Group Policy.
Enable Command Prompt
You can enable Command Prompt in five different steps:
Step 1
1. Open Run dialog box by pressing keys.
2. Type below command into Run dialog box and press OK button.
Step 2
1. Open registry editor by typing regedit command into Start Menu search box or Run dialog box.
2. From opened registry editor navigate to:
3. In the right-pane, double-click DisableCMD value and set it's data to 0 (zero).
Step 3
You can also use Group Policy Editor to enable Command Prompt.
1. Open Group Policy Editor by typing gpedit.msc into Start Menu search box or Run dialog box.
2. Navigate to User Configuration > Administrative Templates > System.
3. Double click the Prevent access to the command prompt
You can then disable or set the policy to Not Configured. Disabling or setting this policy to Not Configured should solve the problem. You may need to restart your system.
Step 4
You can enable the Command Prompt by downloading and running below registry file.
Unzip the registry file within zip archive, double click the EnableCommandPrompt.reg registry file to enable Command Prompt.
Step 5
I have notice novice users and malware infection completely disabling every administrative tools including Group Policy Editor, Registry Editor, Command Prompt, executing any scripts and other Windows features, in this situation there is one thing user or administrator can do that is to reset the group policy settings.
How to Reset Local Group Policies Settings
Enable Command Prompt
You can enable Command Prompt in five different steps:
Step 1
1. Open Run dialog box by pressing keys.
2. Type below command into Run dialog box and press OK button.
Code:
Reg add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f
Step 2
1. Open registry editor by typing regedit command into Start Menu search box or Run dialog box.
2. From opened registry editor navigate to:
Code:
HKEY_CURRENT_USER > Software > Policies > Microsoft > Windows > System
3. In the right-pane, double-click DisableCMD value and set it's data to 0 (zero).
Step 3
You can also use Group Policy Editor to enable Command Prompt.
1. Open Group Policy Editor by typing gpedit.msc into Start Menu search box or Run dialog box.
2. Navigate to User Configuration > Administrative Templates > System.
3. Double click the Prevent access to the command prompt
You can then disable or set the policy to Not Configured. Disabling or setting this policy to Not Configured should solve the problem. You may need to restart your system.
Step 4
You can enable the Command Prompt by downloading and running below registry file.
Unzip the registry file within zip archive, double click the EnableCommandPrompt.reg registry file to enable Command Prompt.
Step 5
I have notice novice users and malware infection completely disabling every administrative tools including Group Policy Editor, Registry Editor, Command Prompt, executing any scripts and other Windows features, in this situation there is one thing user or administrator can do that is to reset the group policy settings.
How to Reset Local Group Policies Settings