Prevent access to the command prompt

Prevents users from running the interactive command prompt, Cmd.exe. This setting also determines whether batch files (.cmd and .bat) can run on the computer.

If you enable this setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action.

Note: Do not prevent the computer from running batch files if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Remote Desktop Services.

Supported on: At least Windows 2000

Disable the command prompt script processing also?


  1. Yes
    Registry HiveHKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Windows\System
    Value NameDisableCMD
    Value TypeREG_DWORD
    Value1
  2. No
    Registry HiveHKEY_CURRENT_USER
    Registry PathSoftware\Policies\Microsoft\Windows\System
    Value NameDisableCMD
    Value TypeREG_DWORD
    Value2


shell-commandprompt-regedittools.admx

Administrative Templates (Computers)

Administrative Templates (Users)