In these situations, if you run the Command Prompt (cmd.exe), you will get an error saying "The command prompt has been disabled by your Administrator". However, there are ways in which you can re-enable it. This article contains some such simple techniques using which you can easily enable the Command Prompt.
Enable Command Prompt using the Group Policy Editor1) Click on Start. Go to Run. Users running Windows 10, Windows 8, Windows 7 or Windows Vista, go to Search > Run. Alternatively, use the Windows key+R keyboard shortcut to directly open the Run dialog box.
2) Type gpedit.msc and press Enter.
3) Navigate to User Configuration/Administrative Templates/System.
4) In the work area on the right side, double click on "Prevent access to the command prompt".
5) In the popup dialog, encircle Disabled and click OK.
6) You should be able to immediately use the Command Prompt. If you still cannot access it, restart your computer.
Note: Home editions of Windows do not contain the Group Policy Editor.
Enable Command Prompt from the Registry in WindowsRegistry 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.
|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 commandIf 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 /f3) 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.