• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
iGuRu

iGuRu

Real-time Technology News. Opinions & Tweaks

  • / news
  • / infosec
  • / tools
  • / tweaks
  • / dummies
  • / opinions
  • / support
home / tweaks / Disable Command Prompt on Windows 10

Disable Command Prompt on Windows 10

12/11/2019 23:05 by Dimitris

Today you'll see how you can disable Command Prompt on Windows 10. It's a tweak especially useful for administrators.

command prompt - Disable Command Prompt in Windows 10

Sometimes it is useful to prevent users from accessing the classic application Command Prompt in Windows 10. For example, if you are a system administrator, you may want to apply this restriction to anyone using their computer for secretarial or accounting use.

There are two ways to disable the command prompt in Windows 10. The first is through the Local Group Policy and the second through the registry editor. The first method can be used in versions of Windows 10, Pro, Enterprise or Education. The second in all versions. Let's look at these methods.

To disable Command Prompt in Windows 10 via the Local Group Policy.
1. Open the Local Groups Local Group Policy Editor. If you do not know how, then press Win + R at the same time, and in the run window, type gpedit.msc, and then press OK.

run - Disable Command Prompt in Windows 10

2. In the left pane, go to "User Settings> Management Templates> System".

3. In the right pane, locate the "Do not allow access to the command line" setting

disable command prompt 1 - Disable Command Prompt in Windows 10

4. Double-click this setting and set it to Enabled.

disable command prompt 2 700x527 - Disable Command Prompt in Windows 10

You can also set the command to also turn off command line script editing to Yes. This prevents execution executable files (* .bat and * .cmd)

Click the Apply button and then the OK button.

If someone tries to access the command line no matter what method they use, the action will be canceled by the following message:
"The command line is disabled by your administrator."

disable command prompt 4 - Disable Command Prompt in Windows 10

 

To disable Command Prompt in Windows 10 via the registry.
1. Open the Registry Editor. If not If you do not know how, then press Win + R at the same time and in the executable window type regedit and then press OK.

2. Go to the following registry key: HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ System
If you do not have such a key, just create it.

3. In the System key, create a new DWORD 32-bit value named DisableCMD. Even if you are running Windows with 64-bit, you should still use DWORD 32 bit as the value type.
disable command prompt 3 - Disable Command Prompt in Windows 10

Set it to 1 to disable the command line and executable files.
Set it to 2 to disable only the command line console.

4. Quit the registry editor. Changes will be automatically saved, but to make them active you will need to log out and log in again.

If you are sorry, simply delete the DisableCMD value to allow the user to use Command Prompt.

Disable Command Prompt on Windows 10 was last modified: 12 November, 2019, 11: 05 pm by Dimitris

Subscribe to our newsletter

no spam

spread the news

  • Facebook
  • Twitter
  • Reddit
  • Printing
  • Email

Read them Technology News from all over the world, with the validity of iGuRu.gr

Follow us on Google News


Competition: tweakstag: administrator, command, prompt, windows, Windows 10

You May Also Like

Windows Web Experience Pack in the Microsoft Store
Windows 10 21H1 A new experience pack has been released
Windows 10 LTSC support 5 years without telemetry

About Us Dimitris

Dimitris hates on Mondays .....

Previous Post: « iGuRu Windows 10 1909 November 2019 Update ISO
Next Post: WordPress 5.3 Kirk: new release with many new features iGuRu »

Reader Interactions

Comment Policy:

IGuRu.gr does not publish the comments immediately. Malicious comments, comments that include ads, or comments that are offensive are deleted without notice. We do not adopt the opinions expressed by our readers.
Your comments will be displayed after approval by the administrators


Leave your comment
Ακύρωση απάντησης

Your email address is not published. Τα υποχρεωτικά πεδία σημειώνονται με *

 

 © 2021 · iGuRu.gr · ☢ · Keep It Simple Stupid Genesis theme

about  ·   get in touch  ·  rss  ·  sitemap  ·  cough

loadingCancel
Could not post post - check your email address!
Email verification failed, please try again
Your blog can not post posts via email.