If you are running a shared computer at your office or home and are looking for a way to disable Command Prompt. This article will guide you through two different ways to block access to Command Prompt on your System. Either Windows 10 Home or Windows 10 Pro. 


How to Enable Tab Freeze in Google Chrome to Reduce Ram Usage.

The Command Prompt tool on Windows 10 and just about every version of Windows Prior to 10 is a very powerful tool capable of making some big changes to your operating system. Because of this, it is usually one of the first tools to be disabled when setting up a shared PC. With Command Prompt disabled, it’s far easier to run a shared environment without fear of major changes being made. 

Depending on the version of Windows 10 you are using, either Windows 10 Home or Pro, will decide which of the two methods shown below you use. If you are using Pro you can use the Group Policy Editor as well as the Registry Editor option. However, if you are using Home, you can only use the Registry Editor option. Which is also sadly the harder of the two processes to follow. 

Related: How to Fix a USB Port That Remains Active After Using Safely Remove Hardware.

How Do You Disable (Block Access to) Command Prompt on Windows 10 Using the Registry Editor?

As you’ll need to use the Windows Registry, for this method (which can be a little tricky to navigate). Make sure you create a Restore Point before continuing, this will allow you to revert to a working system state should you make a major mistake. 

If you haven’t created a restore point before, open the start menu, type Restore, then select Create a Restore Point when it appears on the list. From the new window that appears, click Create in the bottom right section of the screen, then follow the instructions given by Windows. Once you have successfully made a restore point, you can continue.

To begin, open the Windows Run tool by pressing Windows Key + R, type regedit into the box, then press Enter. Once you have the registry editor open, navigate to the following location:


If you don’t see an item in this location right-click and create a new Key/Keys (folder) until you end up with the exact address. Once are in the correct location, right-click the empty space in the central pane and create a New 32-bit DWORD called DisableCMD. When you have it created, double-click on it and change its Value to either: 

1 to disable Command Prompt and Batch Files.

2 to disable Command Prompt Console Only.

After you have decided which number to use Restart your computer and the change will take effect. If you ever wish to restore full function to CMD simply return to the same location and delete the DisableCMD entry. 


How Do You Disable (Block Access to) Command Prompt on Windows 10 Using Group Policy?

For this method, open the Local Group Policy editor by searching Group Policy from the start menu and selecting it when it appears. When you have it open, go to User Configuration > Administrative Templates > System in the left-hand pane. Now in the central pane find Prevent access to the command prompt, then double-click on it and set the Policy to Enabled. You can also set Disable the command prompt script processing to Yes to prevent the execution of batch (*.bat and *.cmd) files. Now simply Sign out or Restart your computer and the change will take effect.