Friday, October 2, 2015

Enabling Command Prompt disabled by Administrator or Virus [Trick: Windows]

If you run the command prompt (cmd.exe), and getting error saying "The command prompt has been disabled by your Administrator". Then it is blocked by Administrator or could be virus infection.

There are ways using which you can re-enable it.


Using the Group Policy Editor

1) Click on Start. Go to Run. Users running Widndows 10, Windows 8/8.1, Windows 7 or Vista, go to Search.
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.

*Home editions of Windows do not contain the Group Policy Editor.

Using Registry Editor

Registry Editor is an in-built tool in Windows. You can use it to easily enable the command prompt by simply modifying a registry key. To do so, follow these steps.

1) Users running Windows 10, Windows 8/8.1, Windows 7 and Windows Vista, go to Start>Search. Users of Windows XP, got to Start>Run.
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. If the Windows key is not there, you will need to create a new key called Windows. Also, if the System key is not there, you will need to create it.
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 and set its value to 0.
6) Close the Registry Editor.

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

The methods mentioned works on Windows 10, Windows 8/8.1, Windows 7, Windows Vista and Windows XP.
Post a Comment