Home » Guides » Personalization »

Published on 05.25.09 by Brent Trahan

Prevent Access to the Command Prompt

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

  1. 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.

  2. Navigate to User Configuration, Administrative Templates, and then select System in the left column of the Group Policy editor.

    prevent-access-cmd-1

  3. Double-click Prevent access to the command prompt in the Settings section of the Group Policy editor.
  4. Select Enable and then click OK to save the changes.

    prevent-access-cmd-2

Still need help? Ask your computer question now.

Related Guides:

Leave a Reply

You must be logged in to post a comment.

Microsoft Windows is a registered trademark of Microsoft Corporation. Microsoft Corporation in no way endorses or is affiliated with MAXIMUMpcguides.com. All other products mentioned are registered trademarks of their respective companies. MAXIMUMpcguides IS NOT RESPONSIBLE for any damage or data loss to your computer from using this web site. All information on MAXIMUMpcguides is provided on an AS IS basis with NO WARRANTIES.

Copyright 2006-2014 Brent Trahan. All rights reserved.