Situatie
On Windows 10 Pro (Enterprise or Education), the easiest way to block users from using Command Prompt is with the Local Group Policy Editor.
Solutie
Pasi de urmat
Open Start.
Search for gpedit.msc and select the top result to open the Local Group Policy Editor.
Browse the following path:User Configuration > Administrative Templates > System
On the right side, double-click the Prevent access to the command prompt policy.
Select the Enabled option.
(Optional) Under the “Options” section, use the drop-down menu to select whether you want to allow or deny running batch files (.bat and .cmd) on your computer when Command Prompt is disabled.Quick note: If the computer has batch files running at logon, logoff, startup, and shutdown, or use remote desktop services, it is not recommended to disable this feature.
Click the Apply button and then click the OK button.
Leave A Comment?