disable command prompt cmd windows 10 easy tutorial

How to Disable Command Prompt on Windows 10

Published by Soufiane Sabiri | Categories : Computers - Tips & Tricks - Computers - Windows 10

Do you want to prevent users from using the Command Prompt?

As you know, the Command Prompt or CMD is a command-line tool that can be used for multiple tasks like executing commands and scripts, creating/deleting folders, troubleshooting errors, performing administrative tasks, fixing the system, and more…

Some PC owners don’t want their users to access the CMD to keep them away from running certain commands that may change the behavior of Windows 10.

The Command Prompt is also known as the modern MS-DOS but it’s not MS-DOS.

Windows 10 comes also with other command-line tools such as PowerShell and Bash.

In this tutorial, you will learn how to disable CMD using Local Group Policy Editor and Registry Editor.

Let’s dive in!

1. Prevent CMD Access on Windows 10 Using Group Policy Editor

Open Run using the Windows+R keyboard shortcut, type in gpedit.msc, click “OK“.

disable command prompt cmd windows 10 1 gpedit msc run

Navigate to “User Configuration” > “Administrative Templates” > “System“.

Double-click on “Prevent access to the command prompt“”.

disable command prompt cmd windows 10 2 local group policy editor administrative templates system prevent access

Select “Enabled” and click “OK“.

disable command prompt cmd windows 10 3 prevent access to the command prompt enabled

Now try to open the Command Prompt, you will get this message:

The command prompt has been disabled by your administrator.

disable command prompt cmd windows 10 4 the command prompt has been disabled by your administrator

2. Block CMD on Windows 10 Using Registry Editor

Open Run using the Windows+R keyboard shortcut, type in regedit, click “OK“.

disable command prompt cmd windows 10 5 regedit run registry editor

Navigate to the following path:

HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows

Right-click on Windows and choose “New” > “Key” and name it System.

If you already have the System key under Windows move to the next step.

disable command prompt cmd windows 10 6 registry editor new key

Right-click on the right pane and choose “New” > “DWORD (32-bit) Value“.

Name the newly created value “DisableCMD“.

disable command prompt cmd windows 10 7 new dword value 32 bit registry editor

Double-click on “DisableCMD” and give it the value 2, click “OK“.

If you also want to disable the script execution enter the value “1”.

disable command prompt cmd windows 10 8 disablecmd edit dword 32 bit value

Try to open the Command Prompt, it has been disabled.

disable command prompt cmd windows 10 4 the command prompt has been disabled by your administrator

If you have any questions about CMD please leave a comment below.

Thanks for reading this tutorial, don’t forget to share ;)


Related tutorials:


Author: Soufiane Sabiri

Soufiane is a young computer scientist and specialist in web design, knows a lot of things in the computer world. This enthusiast enjoys helping people innovate and learn more about the IT world...

Be the first to leave a comment !

Leave a comment

xD oO ^_^ =] =) ;-( ;) :| :woot: :whistle: :sleep: :sick: :police: :p :o :ninja: :mm: :love: :lol: :kiss: :hmm: :evil: :bandit: :angel: :alien: :D :) :( 8)