Learn how to disable the command prompt in Windows 7.
Prevents users from running the interactive command prompt, Cmd.exe. This setting also determines whether batch files (.cmd and .bat) can run on the computer.
If you enable this setting and the user tries to open a command window, the system displays a message explaining that a setting prevents the action.
Note: Do not prevent the computer from running batch files if the computer uses logon, logoff, startup, or shutdown batch file scripts, or for users that use Remote Desktop Services.
Disable the Command Prompt
- Type gpedit.msc in the Start menu’s search box and then press Enter.
Note: This guide shows you how to make changes to Windows 7 using Group Policy. Group Policy is not available in Home versions of Windows 7.
- Navigate to User Configuration, Administrative Templates, and then select System in the left column of the Group Policy editor.
- Double-click Prevent access to the command prompt in the Settings section of the Group Policy editor.
- Select Enable and then click OK to save the changes.
Still need help? Ask your computer question now.
Leave a Reply
You must be logged in to post a comment.