Disable Command Prompt on Windows 10

Today you'll see how you can disable Command Prompt on Windows 10. It's a tweak especially useful for administrators.

Sometimes it is useful to prevent users from accessing the classic application Command Prompt in Windows 10. For example, if you are a system administrator, you may want to apply this restriction to those who use it them for secretarial or accounting use.

There are τρόποι για να απενεργοποιήσετε τη γραμμή εντολών στα Windows 10. Η πρώτη είναι μέσω της Πολιτικής Τοπικής Ομάδας και η δεύτερη μέσω του επεξεργαστή υ. Η πρώτη μέθοδος μπορεί να χρησιμοποιηθεί στις εκδόσεις των Windows 10, Pro, or Education. The second in all editions. Let's look at these methods.

To disable Command Prompt in Windows 10 via the Local Group Policy.
1. Open the Local Groups Local Group Policy Editor. If you do not know how, then press Win + R at the same time, and in the run window, type gpedit.msc, and then press OK.

2. In the left pane, go to "User Settings> Management Templates> System".

3. In the right pane, locate the "Do not allow access to the command line" setting

4. Double in this setting and set it to Enabled.

You can also set the command to also turn off command line script editing to Yes. This prevents execution executable files (* .bat and * .cmd)

Click the Apply button and then the OK button.

Now if someone tries to access the command line, regardless of the method that , the action will be canceled with the following message:
"The command line is disabled by your administrator."

 

To disable Command Prompt in Windows 10 via the registry.
1. Open Registry Editor. If not If you don't know how, then press the Win + R keys at the same time and in the run window that appears write the word and then press the OK key.

2. Go to the following registry key: HKEY_CURRENT_USER \ Software \ Policies \ Microsoft \ Windows \ System
If you do not have such a key, just create it.

3. In the System key, create a new DWORD 32-bit value named DisableCMD. Even if you are running Windows with , you should use 32 bit DWORD as the value type.

Set it to 1 to disable the command line and executable files.
Set it to 2 to disable only the command line console.

4. Quit the registry editor. Changes will be automatically saved, but to make them active you will need to log out and log in again.

Αν μετανιώσετε, απλά διαγράψτε την τιμή DisableCMD για να επιτρέψετε στο χρήστη να τον Command Prompt.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.100 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).