Disable Windows 2000 / XP command promt and execution of batch files

  • Section(s): Command shell
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 3.1 out of 5 based on 15 votes.
Locking down Windows 2000 or Windows XP? Need to disable the command shell and/or batch files. You can use the following registry hack:

Hive: HKEY_CURRENT_USER
Key: Software\Policies\Microsoft\Windows\System
Name: DisableCMD
Type: REG_DWORD
Value: 0 enable command prompt and batch files
Value: 1 disable command prompt and batch files
Value: 2 disable command prompt but allow batch files

About Wayne Maples

Share this article


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred network administration tool?