Computer step by step
 Make your Pc better
Description:  

Command Prompt is a feature of Windows that provides an entry point for typing MS-DOS (Microsoft Disk
Operating System) commands and other computer commands. The most important thing to know is that
by typing commands, you can perform tasks on your computer without using the Windows graphical
interface. Command Prompt is typically only used by advanced users.

For more information please continue to read the official Microsoft article
Path:          
This method shows you where Command Prompt is located in Windows using Windows Explorer
Please perform the following steps:

Please go to Start and choose Run ...
Type C:\Windows\System32 and press ok
In the system32 folder you can find cmd file
Disable:          

When you open Command Prompt this message will be displayed:
The command prompt has been disabled by your administrator.
Press any key to continue ...
Gpedit:          

Warning Computers running Windows XP Home Edition cannot join corporate domains. For this reason,
features that require machine accounts within a domain, such as Group Policy, are not available in
Windows XP Home Edition.

For more information please continue to read the official Microsoft article
This method shows you how to Disable/Enable Command Prompt from Group Policy
Please perform the following steps:

Please go to Start and choose Run ...
Type gpedit.msc and press ok
In the Group Policy window please navigate to User Configuration -> Administrative Templates ->
System and open Prevent access to the command prompt
The Default state is Not Configured and Command Prompt is Enable
To Enable cmd select Disable
To Disable cmd select Enable

To finish press ok button and close Group Policy window
Regedit:          
This method shows you how to Disable/Enable Command Prompt from Registry Editor
Please perform the following steps:

Please go to Start and choose Run ...
Type regedit and press ok
Microsoft official disclaimer

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by
using another method. These problems might require that you reinstall the operating system. Microsoft
cannot guarantee that these problems can be solved. Modify the registry at your own risk.

Please navigate to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
and locate DisableCMD registrykey
Double click on DisableCMD and edit the value:

To Disable Command Prompt Only:

Change the data value with 2

To Disable Command Prompt and Scripts

Change the data value with 1

To Enable Command Prompt:

Change the data value with 0

To finish press ok button and close Registry Editor window
How to Disable/Enable Command Prompt
Windows Vista Windows 7 Windows Xp
   
   
   
   
   
Description Path Disable Gpedit Back Regedit Up Back