Administrative Templates > System. In the right pane, double-click the Block Access Command Prompt. Step 3: Select Not Configured or Disabled, and then click Apply and OK. Now you can"/> Administrative Templates > System. In the right pane, double-click the Block Access Command Prompt. Step 3: Select Not Configured or Disabled, and then click Apply and OK. Now you can">
Home >System Tutorial >Windows Series >Fix 'Command Prompt Has Been Disabled by Your Administrator'
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.
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 阻止访问命令提示符
.
Step 3: Select 未配置
or 已禁用
, and then click 应用
and 确定
. Now you can open and use the command prompt normally.
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.
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.
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.
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!