CALL (239) 961-8285
ENDURTECH
  • Web Services
    • Web Design
      • Design and Development
      • Web Consulting and Tutoring
      • Hosting and Maintenance
      • Project Portfolio
    • Media
      • Photo and Audio, Video Editing
      • Social Media Management
      • All Web Related Services
    • Marketing
      • Digital Marketing and Branding
      • Search Engine Optimization
    • Client Portal
      • Remote Web Support
      • Web Services Payment
      • Scheduled Payments
  • Tech Support
    • Services
      • Computer Support and Repair
      • Data Backup and Recovery
      • Computer Security, Virus Removal
      • Computer Networking Support
      • Computer Consulting & Tutoring
      • All Technology Related Services
    • Blockchain
      • Blockchain Technology
      • Cryptocurrency Articles
    • Client Portal
      • Remote PC Support
      • Remote Monitoring & Management
      • Tech Services Payment
  • Articles
  • About
  • Talk to Me
  • Menu Menu

Disable Command Prompt on Windows

Computer Security, Microsoft, Security, Technology Support, Windows

Both the PowerShell and Command Prompt tools may be used to configure various system settings or access various apps. However, most Windows users will never need to use these tools directly. But because they exist and are accessible, it is often recommend to disable them to help prevent a malicious actor from utilizing these dormant tools against said users.

To help increase your cybersecurity it is recommend to toggle off the Command Prompt on your Windows based PC. You can then toggle the Command Prompt back on as needed.

Within this article I will show you how to disable (and re-enable) the Command Prompt on your Windows PC. You may also be interested in my other article on how to disable PowerShell on Windows.

 

Disabling the Command Prompt on Windows

You may disable the Command Prompt using either the Local Group Policy Editor (available to those on the Pro version of Windows) or the Registry Editor (accessible to all versions of Windows).

Disable Command Prompt Using Local Group Policy Editor

If you are familiar with the Local Group Policy Editor (LGRE) tool, you probably know that it makes it easy to tweak various system settings.

Now, here’s how to use the Group Policy Editor to disable the Command Prompt:

  • Click the Windows Start button and type gpedit.msc (there is no input field, just start typing) and press Enter to open the Group Policy Editor.
  • Navigate to User Configuration > Administrative Templates > System.
  • Double-click Prevent access to the command prompt option on the right-hand side pane.
  • Select Enabled in the top-left corner then click “Apply” then “OK” buttons down below.

The Windows Command Prompt should now be disabled via the Group Policy Editor, but a restart may be required.

Enable the Command Prompt Using Local Group Policy Editor

  • Open Group Policy Editor and navigate to the System option by following the previous steps.
  • Double-click on Prevent access to the command prompt option.
  • Select either Not Configured or Disabled in the top-left corner then click “Apply” then “OK” buttons down below.

The Windows Command Prompt should now be enabled via the Group Policy Editor, but a restart may be required.

Disable Command Prompt Using Windows Registry Editor

The Registry Editor carries sensitive keys that control how your Windows device works. So, you should be very careful when altering your Registry keys. In fact, the best thing to do is to back up the Registry and know how to restore it before making any changes to it.

With that said, here is how to use the Registry Editor to disable the Command Prompt:

  • Click the Windows Start button and type regedit (there is no input field, just start typing) and press Enter to open the Registry Editor.
  • From there, copy-paste the following registry location into the address bar at the top of the window and press Enter.
    • HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows
  • Click on the System folder under the Windows folder. Note, these “folders” are actually “keys” but because the icon is that of a folder, I call it a folder.
    • If the System folder is missing, create it by right-clicking on the Windows folder and selecting New > Key.
    • Next, rename the key as System and then press Enter.
  • On that you are within the System folder, right-click on a blank space on the right and select New > DWORD (32-bit) Value.
  • Name the value: DisableCMD and set the Value data to “1” (one, without the quotes).
  • Then press OK and close the Registry Editor.

The Windows Command Prompt should now be disabled via the Registry Editor, but a restart may be required.

Enable the Command Prompt Using Windows Registry Editor

To re-enable the Command Prompt via the Registry Editor, apply the previous methods but set the Value data for DisableCMD to “0” (zero, without the quotes).

The Windows Command Prompt should now be enabled via the Registry Editor, but a restart may be required.

 

Conclusion

I hope my article on disabling the Command Prompt on Windows has helped you increase your cybersecurity. I welcome your thoughts, questions or suggestions regarding this article.

To further increase your cybersecurity protection, you may want to read my other article on how to disable PowerShell on Windows.

You may support my work and future improvements by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.

 

June 12, 2023
Share this entry
  • Share on Facebook
  • Share on X
  • Share on WhatsApp
  • Share on LinkedIn
  • Share on Reddit
  • Share by Mail
https://endurtech.com/wp-content/uploads/2018/04/windows.jpg 512 512 Manny https://endurtech.com/wp-content/uploads/2018/04/endurtech-logo.png Manny2023-06-12 03:51:132023-06-12 04:22:24Disable Command Prompt on Windows
2 replies
  1. mustafa
    mustafa says:
    June 25, 2024 at 3:29 pm

    cheers

    • Manny
      Manny says:
      June 25, 2024 at 3:31 pm

      Happy to have helped Mustafa. Thanks for sharing.

Comments are closed.

Search Search

CONNECT WITH US

This field is for validation purposes and should be left unchanged.
Engagement*

Want to say, "thanks"?
Leave me a review on Facebook and/or Google.

You can send me a tip using your Brave browser. Get Brave!

Only used to send you a receipt.
Include a Message
Popular
  • Windows Logo
    Second Monitor on Windows 10 Resets After SleepJuly 2, 2020 - 6:30 am
  • Windows Logo
    How to Disable the F1 Help Key in Windows 10April 15, 2021 - 2:40 pm
  • Cortana Logo
    How to Disable Microsoft’s CortanaApril 6, 2021 - 9:00 am
  • Firefox Logo
    How to Remove All Passwords from Lockwise in FirefoxMarch 26, 2020 - 11:00 am
Recent
  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar Err...July 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

STAY IN TOUCH

ENDURTECH Web Design Company Naples, Florida

Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Learn More & Connect

Search Search
ENDURTECH Logo
Endurtech GitHub ProfileEndurtech YouTube ChannelEndurtech LinkedIn ProfileEndurtech Facebook Page

5 Star Google Review for Endurtech - Naples Web Design Company

Latest Articles

  • How to Fix Brother BrLog Errors
    How to Fix Brother BrLog ErrorsAugust 24, 2026 - 10:55 am
  • How to block Facebook crawler
    List of Spider Crawlers to BlockAugust 10, 2026 - 9:20 am
  • Brave Browser Logo
    How to Fix the “Not Secure” Address Bar ErrorJuly 20, 2026 - 12:48 pm
  • Linkpull Extension By Endurtech
    LinkPull Extension, Grab Any File From a URLJuly 7, 2026 - 7:35 pm

Recent Projects

  • Jewelry Website Gems of Note
    Gems of NoteNovember 15, 2019 - 10:16 pm
  • Gift Store Facebook Business Page Cover Video
    Gift Store Facebook Business Page Cover VideoApril 13, 2019 - 3:58 pm
  • Toledo Yoga BrandBot Footer Integration
    Toledo YogaApril 9, 2019 - 7:26 am
  • Lawyer Association Website with Member Portal
    National Employment Lawyers Association, Florida ChapterFebruary 26, 2019 - 8:00 am

Business Details

Mondays - Fridays
9:00 am - 5:00 pm
Eastern Standard Time
After hours by appointment

SUPPORT PHONE

(239) 961-8285

MAILING ADDRESS

59 Logan Ln.
Lynchburg, VA 24502

Copyright © 2026 ENDURTECH ® All Rights Reserved. Legal
Link to: Disable PowerShell on Windows Link to: Disable PowerShell on Windows Disable PowerShell on WindowsWindows Logo Link to: How to Disable Hibernate on Windows Link to: How to Disable Hibernate on Windows Windows LogoHow to Disable Hibernate on Windows
Scroll to top Scroll to top Scroll to top