Ways to Enable/Disable Command Prompt

How to Enable/Disable Command Prompt

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

In this tutorial, we will show you on how to enable/disable command prompt in different ways.

Solution 1:

We can enable/disable command prompt by typing this command in the Run dialog box.

REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /f

Note: 0 means enable, 1 will disable the command prompt.

Solution 2:

Modify the registry value.

  1. Open Registry Editor (Regedit.exe) and navigate to:
  2. [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System]
  3. In the right-pane, double-click DisableCMD and set its data to 0

Solution 3:

Using Group Policy Editor (gpedit.msc)

  1. Click Start, Run or use the keyboard shortcut (Window + R), and type gpedit.msc and click OK.
  2. Navigate to User Configuration \ Administrative Templates \ System
  3. Double-click the Prevent access to the command prompt setting.

    Group Policy Editor

  4. You will be prompted by 3 options
    • Not Configured – this will disable the setting, meaning command prompt is enabled.
    • Enabled – this will prevent the user to use the command prompt.
    • Disabled – same with Not Configured option, this will also allow the user to access the command prompt
      Group Policy Editor
  5. Restart your computer.

Comments

comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.