Home System Tutorial Windows Series Fix 'Command Prompt Has Been Disabled by Your Administrator'

Fix 'Command Prompt Has Been Disabled by Your Administrator'

Mar 03, 2025 pm 12:18 PM

Windows 10 Command Prompt is disabled? Three methods can be easily solved!

Your Windows 10 command prompt window flashes by and says "Command Prompt has been disabled by the administrator"? Don't worry, this article provides three ways to help you restore the command prompt function.

Fix

Method 1: Use Group Policy Editor (GPEDIT)

Step 1: Enter gpedit.msc in the Windows 10 Start menu, and then click to open the local Group Policy Editor.

Step 2: Navigate to 用户配置 > 管理模板 > 系统. In the right pane, double-click 阻止访问命令提示符.

Fix

Step 3: Select 未配置 or 已禁用, and then click 应用 and 确定. Now you can open and use the command prompt normally.

Fix

Method 2: Use Registry Editor (REGEDIT)

Tip: This method requires editing the registry. It is recommended that you back up the registry before the operation, just in case.

Step 1: Press Win R key to open the run dialog box, enter regedit and click OK to open the Registry Editor.

Step 2: Navigate to HKEY_CURRENT_USERSoftwarePoliciesMicrosoftWindowsSystem. In the right pane, double-click the DisableCMD key.

Fix

Tip: If you cannot find the Windows key under System, you need to create a new key and name it System. If you cannot find the DisableCMD key, create a new DWORD value and name it DisableCMD.

Step 3: Set the numerical data to 0 and click 确定. Now you can open and use the command prompt normally.

Fix

Method 3: Use the run command

Tip: This method is only valid when you log in to Windows 10 as a built-in administrator.

Step 1: Press Win R key to open the Run dialog box, then enter REG add HKCUSoftwarePoliciesMicrosoftWindowsSystem /v DisableCMD /t REG_DWORD /d 0 /f in the box, and then click OK.

Fix

Step 2: If you see a command prompt window flashing, it means that the disabled command prompt has been successfully re-enabled and you can use it normally.

Select the method that suits you and easily solve the problem of the command prompt being disabled!

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!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1654
14
PHP Tutorial
1252
29
C# Tutorial
1225
24
Windows kb5054979 update information Update content list Windows kb5054979 update information Update content list Apr 15, 2025 pm 05:36 PM

KB5054979 is a cumulative security update released on March 27, 2025, for Windows 11 version 24H2. It targets .NET Framework versions 3.5 and 4.8.1, enhancing security and overall stability. Notably, the update addresses an issue with file and directory operations on UNC shares using System.IO APIs. Two installation methods are provided: one through Windows Settings by checking for updates under Windows Update, and the other via a manual download from the Microsoft Update Catalog.

Nanoleaf Wants to Change How You Charge Your Tech Nanoleaf Wants to Change How You Charge Your Tech Apr 17, 2025 am 01:03 AM

Nanoleaf's Pegboard Desk Dock: A Stylish and Functional Desk Organizer Tired of the same old charging setup? Nanoleaf's new Pegboard Desk Dock offers a stylish and functional alternative. This multifunctional desk accessory boasts 32 full-color RGB

Dell UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) Review: The Best Looking LCD Monitor I've Tested Dell UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) Review: The Best Looking LCD Monitor I've Tested Apr 06, 2025 am 02:05 AM

Dell's UltraSharp 4K Thunderbolt Hub Monitor (U2725QE): An LCD That Rivals OLED For years, I've coveted OLED monitors. However, Dell's new UltraSharp 4K Thunderbolt Hub Monitor (U2725QE) has changed my mind, exceeding expectations with its impressiv

How to Use Windows 11 as a Bluetooth Audio Receiver How to Use Windows 11 as a Bluetooth Audio Receiver Apr 15, 2025 am 03:01 AM

Turn your Windows 11 PC into a Bluetooth speaker and enjoy your favorite music from your phone! This guide shows you how to easily connect your iPhone or Android device to your computer for audio playback. Step 1: Pair Your Bluetooth Device First, pa

Alienware 27 4K QD-OLED (AW2725Q) Review: A New Standard for Pixel Density Alienware 27 4K QD-OLED (AW2725Q) Review: A New Standard for Pixel Density Apr 08, 2025 am 06:04 AM

The Alienware 27 4K QD-OLED (AW2725Q): A Stunning, High-Density Display The $899.99 price tag for a 27-inch monitor might seem steep, but the Alienware AW2725Q's exceptional pixel density delivers a transformative experience for both gaming and every

ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off ASUS' ROG Zephyrus G14 OLED Gaming Laptop Is $300 Off Apr 16, 2025 am 03:01 AM

ASUS ROG Zephyrus G14 Esports Laptop Special Offer! Buy ASUS ROG Zephyrus G14 Esports Laptop now and enjoy a $300 offer! Original price is $1999, current price is only $1699! Enjoy immersive gaming experience anytime, anywhere, or use it as a reliable portable workstation. Best Buy currently offers offers on this 2024 14-inch ASUS ROG Zephyrus G14 e-sports laptop. Its powerful configuration and performance are impressive. This ASUS ROG Zephyrus G14 e-sports laptop costs 16 on Best Buy

These Are My Go-To Free Alternatives for Paid Windows Apps These Are My Go-To Free Alternatives for Paid Windows Apps Apr 04, 2025 am 03:42 AM

Many free apps rival their paid counterparts in functionality. This list showcases excellent free Windows alternatives to popular paid software. I firmly believe in using free software unless a paid option offers a crucial, missing feature. These

5 Hidden Windows Features You Should Be Using 5 Hidden Windows Features You Should Be Using Apr 16, 2025 am 12:57 AM

Unlock Hidden Windows Features for a Smoother Experience! Discover surprisingly useful Windows functionalities that can significantly enhance your computing experience. Even seasoned Windows users might find some new tricks here. Dynamic Lock: Auto

See all articles