How to Disable / Enable the Windows Command Prompt in 2 SECONDS

Published 2023-06-06
To disable the Windows command prompt, we can prevent users from accidentally or intentionally making changes, that could harm the system.

GO TO WINDOWS Command Prompt
reg add "HKCU\Software\Policies\Microsoft\Windows\System" /v DisableCMD /t REG_DWORD /d 0x1 /f

GO TO WINDOWS PowerShell
reg delete "HKCU\Software\Policies\Microsoft\Windows\System" /v DisableCMD /f

A popular method that could to disable the Windows Command Prompt is:
Open Start.
Search for gpedit.msc and select the top result to open the Local Group Policy Editor.
Search the following path:
1. User Configuration
2. Administrative Templates
3. System
On the right side, double-click the Prevent access to the command prompt option.
Select the Enabled option.
Click the Apply button.
Click the OK button.

#PowerShell #CMD #Registry #Administrator #Command_prompt_window



Music from YouTube Audio Library

All Comments (1)