How to Disable Access to the Command Prompt for Standard Account?

Wondering how to disable access to the Command Prompt for a standard account?

Command Prompt is a powerful program that allows users to perform advanced administrative functions by executing relevant commands. If you have been the victim of frequent Windows errors, you might have come across this tool as it is often used to restore the system’s health in case of errors. 

However, since the Command Prompt is a powerful tool, its incorrect usage can cause severe system issues. If your PC is used by other individuals, disabling their access to Command Prompt is an excellent way to ensure safety, especially if your kids use it. 

This guide will walk you through the process of disabling standard account user’s access to the Command Prompt. 

Let’s dive right in!

1. Use the Local Group Policy Editor.

Group Policy Editor is a centralized place for users to manage the operating system. Administrators also use it to make changes in Windows, including the critical ones that are not allowed by programs such as Control Panel. 

If you want to disable access to the Command Prompt for standard accounts, then one of the simplest ways to do it is via Group Policy Editor. 

Here is what you need to do:

  1. Open a Run dialogue box by pressing the Windows + R keys simultaneously.
  2. Type ‘gpedit.msc’ in the text box and hit Enter to launch the Group Policy Editor. 
  3. Now navigate to the path mentioned below in the Group Policy Editor. 
User Configuration\ Administrative Templates\ System\
  1. Now locate Prevent access to the command prompt and double-click on it. 
How to Disable Access to the Command Prompt for Standard Account
  1. Inside the new window, click Enable, and under Option, select Yes from the drop-down menu. 
  2. Finally, click on the Apply/OK button to save the changes. 

Doing so will prevent standard users from accessing Command Prompt on your PC. 

2. Use Windows Registry. 

Like the Group Policy Editor, Windows Registry also allows the users to manage and configure settings of programs on your PC. It stores critical information about each program, and by making slight changes in those settings, you can make Windows work according to your own preferences. 

However, we strictly advise you to follow this method carefully as Registry is a powerful tool. Incorrect usage can wreak havoc on your system. 

Here is what you need to do:

  1. Launch a Run dialogue box by pressing Windows + R keys simultaneously. 
  2. Type ‘regedit’ in the text field of the dialogue box and hit Enter
  1. This will launch Windows Registry. Now navigate to the location mentioned below.
HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System
  1. Inside the System window, right-click anywhere and click on New
  2. Select DWORD (32-bit) Value option and name it as DisableCMD.
How to Disable Access to the Command Prompt for Standard Account
  1. Now double-click on the newly created value, and in the text field under the Value Data option, type 1
  2. Finally, click on OK to save the changes and restart your PC.

That’s it. The standard account users would not be able to reaccess Command Prompt. If you want to enable their access to Command Prompt in the future, follow the steps mentioned above again and replace the Value Data with 0.

3. Using ICacls.exe Command-line Utility.

You can also use Command Prompt itself to disable the access of standard account users. However, this method is only suitable for the administrators who want to prevent only one standard account user from accessing Command Prompt. 

Here is what you need to do:

  1. Type cmd in the search bar and click on Run as administrator
  2. Type the following command inside the Command Prompt window and hit Enter. Don’t forget to replace ‘Zainab’ with the username associated with the targeted standard account. 
takeown /f cmd.exe
icacls cmd.exe /deny Zainab:RX
  1. Close the Command Prompt and check if the issue is resolved. 

Hopefully, doing so will block the targeted standard account from accessing Command Prompt on your PC.

4. Try Using CleanMyPC.

There are times when we fail to perform desired actions on our PC and face frequent errors while using certain programs. This typically happens due to the junk, unwanted system files that are not just occupying the space but are also affecting your PC’s performance significantly. 

If this is something you have been facing too, then it’s the right time to deep clean your PC using an efficient PC cleaner. If you are looking for a reliable PC cleaner, we highly recommend CleanMyPC

Install CleanMyPC on your PC

CleanMyPC is not just a PC cleaner because it comes with a wide range of system maintenance tools that can take care of everything from cleaning Windows Registry to protecting your Online privacy. 

Install CleanMyPC now to boost your PC’s overall performance!


Try CleanMyPC Now!


5. Use the Advanced Permission Dialogue. 

Another easy way to prevent standard account users from accessing Command Prompt is by using the Advance Permission Dialogue. Advance Permission Dialogue allows users to edit or remove permissions of files, folders, and programs like the Command Prompt. 

Here is how you can use the Advanced Permissions Dialogue to edit the permissions of Command Prompt:

  1. Go to the Local Disk (C:).
  2. Locate the Windows folder and open it. 
  3. Now find the System32 folder and double-click on it. 
  4. Next, look for cmd.exe and right-click on it. 
  5. Choose Properties and go to the Security tab.
  6. Click on the Advanced button to open the Advanced Security Settings dialogue.
How to Disable Access to the Command Prompt for Standard Account
  1. Select Change against the Owner option and under ‘Enter the object name to select’, type Administrators.
CMD Administrative Settings
  1. Hit Enter to save the Changes. 
  2. Now inside the Advanced Security Settings dialogue, click on Change permissions
Change Advanced Setting for CMD
  1. Select Add and click on Select a principal.
  2. Now type the username of the targeted account and click OK
  3. Click on the drop-down menu against Type and select Deny.
  4. Checkmark the Read, Read & Execute boxes and click OK

This would change the permissions of the targeted account, and hopefully, the target account user will not be able to reaccess Command Prompt. 

This wraps up our guide on disabling access to the Command Prompt for the standard account. We tried to walk you through the steps in detail and hope that our troubleshooting steps helped resolve the issue. If you have questions regarding the troubleshooting methods, please let us know in the comment section below.  

If this guide helped you, please share it. 🙂

Author

  • Zainab Falak

    Zainab Falak is a staff writer for Saint and an expert in Microsoft Windows, having authored more than 200 posts. She has a Bachelors in Actuarial Sciences and her passion for computers extends to exploring various aspects, from UI customization to the Windows registry and exploring error codes. Twitter LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *