Enable or Disable Command Prompt using GPO or Registry in Windows 10
To prevent access to the Control Prompt in Window, you can make utilise of Grouping Policy settings or edit the Windows Registry, so as to disable the Command Prompt. When you do this, it volition prevent users from running the interactive command prompt or CMD.exe. Let us see how nosotros tin practise it in Windows x/eight/seven.
Disable Command Prompt
You can disable Command Prompt in Windows ten using the Grouping Policy or the Registry. Let us see how to exercise it.
Using GPO
Open Run box, type gpedit.msc and hit Enter to open the Local Group Policy Editor. Navigate to the following path:
User Configuration/Administrative Templates/System
In the right side pane, yous will see Foreclose access to the command prompt. Double click on it to ready the policy. Select Enabled and click Apply/OK.
This policy setting prevents users from running the interactive command prompt, Cmd.exe. This policy setting also determines whether batch files (.cmd and .bat) can run on the computer. If y'all enable this policy setting and the user tries to open a command window, the organisation displays a message explaining that a setting prevents the action. If you lot disable this policy setting or practise not configure it, users can run Cmd.exe and batch files unremarkably.
Here, you can likewise Disable the command prompt script processing also, if y'all wish.
If your version of Windows does non have Grouping Policy, yous tin do the following.
Using Registry
Run regedit to open the Registry Editor. navigate to the following registry primal:
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
If the Windows or System primal is not present, you may be required to create them.
In the right pane, double click DisableCMD and fix its value to 0.
If DisableCMD is not present on your system, yous may be required to create a new DWORD value, proper name it DisableCMD then give information technology a value 0.
Now if whatever user were to effort to open up CMD, they would see a message:
The command prompt has been disabled by your administrator.
Enable CMD in Windows x
If for some reason, you need to do the opposite, ie. enable the command prompt, simply disable the Forestall access to the command prompt policy setting. In the registry, y'all may delete the DisableCMD DWORD or gear up its value to 1.
Our FixWin also lets you enable control prompt if it has been disabled, in a click.
Hope this helps!
See this postal service if you want to preclude access to Registry Editor.
Source: https://www.thewindowsclub.com/enable-disable-command-prompt-windows
Posted by: lopezforeence.blogspot.com
0 Response to "Enable or Disable Command Prompt using GPO or Registry in Windows 10"
Post a Comment