Home > Windows > Accessories > Command Processor
(Windows 2000/XP)
This restriction allows you to selectively disable the Command Prompt (CMD) and the ability to execute DOS batch files.
Open your registry and find or create the key below.
Create or modify the DWORD value "DisableCMD" and set it to a number from the list below.
- 0 - (default) enable command prompt and batch files
- 1 - disable command prompt and batch files
- 2 - disable command prompt but allow batch files
The change should take effect immediately.
 |  |  |  |  |
 |  | (Default) | REG_SZ | (value not set) |  |
 |  | DisableCMD | REG_DWORD | 0x00000001 (1) |  |
 |
 | HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System |  |
 |
| Registry Settings |
User Key: [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
Value Name: DisableCMD
Data Type: REG_DWORD (DWORD Value)
Value Data: (0 = default, 1 = disabled, 2 = disabled but allow batch)
|
Disclaimer: Modifying the registry can cause serious problems that may require you to reinstall your operating system. We cannot guarantee that problems resulting from modifications to the registry can be solved. Use the information provided at your own risk.
Last Modified: August 5, 2002
|