After you open Command Prompt in Windows 10, the window immediately exits when you press any key. You open CMD again wanting to see the cause and find "The command prompt has been disabled by your administrator" showing on the screen.
Then what should be done to fix the problem so that you can open and use CMD normally? Now, this post will show you three options to re-enable Command Prompt disabled by the administrator in Windows 10. The methods also work on other Windows versions.
- Option 1: by Group Policy Editor
- Option 2: by Registry Editor
- Option 3: by Run command
Option 1: Use GPEDIT to enable Command Prompt disabled by the administrator
Step 1: In the Windows 10 Start menu, type gpedit.msc. Then click gpedit in the program list to open Local Group Policy Editor.
Step 2: Navigate to User Configuration > Administrative Templates > System. Click on the System entry, then on the right-side pane, double-click on Prevent access to the command prompt.
Step 3: Check Not Configured or Disabled, and then click Apply and OK. Then you can open and use Command Prompt normally.
Option 2: Use REGEDIT to fix "The command prompt has been disabled by your administrator"
Tips: You will need to edit Registry. It's a good idea to firstly backup your Windows 10 registry if you fear to make a mistake.
Step 1: Press Win + R keys to bring out the Run dialog. Type regedit and click OK to open Registry Editor.
Step 2: Navigate to HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsSystem. Click on the System entry, and then on the right-side pane, double-click on the DisableCMD key.
Tips: If you can't find the System key under Windows, you need to create a new key and name it System. If you can't find the DisableCMD key, create a new DWORD value and name it DisableCMD.
Step 3: Set the value data to 0 and click OK. Then you can open and use Command Prompt normally.
Option 3: Use Run command to enable command prompt disabled by the administrator
Tips: This way only works when you've signed into Windows 10 as the built-in administrator.
Step 1: Press Win + R to bring out the Run dialog. Then type REG add HKCUSoftwarePoliciesMicrosoftWindowsSystem /v DisableCMD /t REG_DWORD /d 0 /f in the box and then click OK.
Step 2: When you see a command prompt window flash by, the disabled Command Prompt is re-enabled successfully and you can use it to work normally.
The above is the detailed content of Fix \'Command Prompt Has Been Disabled by Your Administrator\'. For more information, please follow other related articles on the PHP Chinese website!

Upgrading your aging laptop? Adding RAM is the easiest and often the only practical upgrade besides storage. My recent experience upgrading a Dell Latitude 5420 proved surprisingly impactful. More RAM Wasn't the Initial Goal My used Dell 5420, while

Let's be honest: unless you're a keyboard enthusiast, you've probably overlooked the cable bundled with your keyboard. But for those who appreciate the finer details, even a simple USB cable can be a source of aesthetic pleasure. 5 Reasons Why Coiled

Today's NYT Connections Game Hints and Answers Need a hand with today's Connections game? Here are some clues to get you started: Yellow: Think about what's under your feet. Green: Where you rest your head (or bottom!). Blue: How others see you. Pu

Building a new PC? Don't get sidetracked by flashy RGB lighting! While those vibrant fans and memory sticks are tempting, overlooking the motherboard is a critical mistake. This often-underappreciated component is crucial for your PC's performance

Razer Monitor Stand Chroma Review: Take into account both high-end design and practicality? The Razer Monitor Stand Chroma is a high-end compact aluminum stand with RGB lighting and a USB hub, but its relatively small size and high price limits its overall appeal. Rating: 7/10 Advantages and Disadvantages: advantage: Streamlined design Sturdy and durable USB hub performs well Remapable buttons shortcoming: The bracket is relatively shallow The included USB-C cable is too short Fingerprints easily contaminated on the surface The maximum brightness of RGB lights is low Extremely expensive Price and purchase channels: Razer Mo

Parallels Desktop 20.3: Enhanced Mac Integration and New Features Parallels Desktop 20.3 boasts several significant updates, enhancing both user experience and functionality. A standout addition is OBS virtual camera tunneling, allowing users to str

Logitech G PRO 2 Gaming Mouse

Grab Samsung Odyssey Neo G8 limited-time special offer! Samsung Odyssey Neo G8 esports monitor takes your gaming experience to the next level with its 4K resolution, 1000R curvature VA panel and ergonomic design. Original price is $1299.99, current price is only $699.99! Save $600! This high-end monitor is rare to discount, with a very cost-effective and not to be missed! This offer is only one day, no time to go! Samsung Odyssey Neo G8 curved display with a 32-inch oversized 16:9 screen almost reaches the size of a TV. 4K resolution brings the game to life (provided that your graphics card can withstand it). 240Hz refresh rate and 1ms GTG


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

SublimeText3 Chinese version
Chinese version, very easy to use

Notepad++7.3.1
Easy-to-use and free code editor

Dreamweaver Mac version
Visual web development tools
