Allow or disallow the command prompt and/or batch files (*.BAT, *.CMD).

Click here to run a free scan for registry errors
This setting can be used to allow or disallow the command prompt and/or batch files (*.BAT, *.CMD).
Level: Recommended For Experts Only
Description:
By default windows allow command prompt and batch files. By using this tweak you can either disallow command prompt but allow batch files, disallow command prompt and batch files or allow both. For this, go to start > run menu, enter "regedit" and navigate to the registry path listed below. You can create a dword value "disablecmd", if this value does not exist. Now, right-click and modify the value to "2" for disallow command prompt but allow batch files, or "1" for disallow command prompt and disallow batch files. However, if you want to get back to the original state, change the value to "0". Restart your system for the change to take effect. When editing the registry it is highly recommended to run a quick scan for optimization, you can test your system now for free.




Screenshots


First, click the 'Start' button, and select 'Run'. In the resulting dialog box, type "regedit".
Go to <b>[HKEY_CURRENT_USER\Software\Policies\Microsoft\]</b>, key and create a new key with the name "Windows" under "Microsoft".
Then, create a "System" key under "Windows".
Now, right-click in the open area to create a DWORD Value with the name "DisableCMD" in "System" key.
Next, right-click on "DisableCMD" and click on 'Modify'.
Finally, enter the value User "2" without quotation in the text box and click on 'OK'. Once you are done. Exit from registry. After a restart or logoff, the changes take effect.


Registry Entries

- back to top

  • Path: [HKEY_CURRENT_USER\Software\Policies\Microsoft\]
  • Location: Current User
  • Value Name: Windows
  • Data Type: Key
  • Action Type: Add an Entry
  • Path: [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\]
  • Location: Current User
  • Value Name: System
  • Data Type: Key
  • Action Type: Add an Entry
  • Path: [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\]
  • Location: Current User
  • Value Name: DisableCMD
  • Data Type: DWORD (DWORD Value)
  • Enabled Value: 2 or 1
  • Disabled Value: 0
  • Action Type: Add an Entry


Related Tweaks

- back to top