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

Fix 'Command Prompt Has Been Disabled by Your Administrator'

Barbara Streisand
Release: 2025-03-03 12:18:12
Original
786 people have browsed it

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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template