OPERATING SYSTEMSOS Windows

How to disable Run Command (Win+R) box in Windows 10


This post will show you how to enable or disable Run Command (Win+R) box in Windows 10. Using Run Command or Run menu, we are able to directly open applications (like launch Registry Editor, open About Windows, Notepad, etc.). If for some reason, you want to disable it, then this post shows you how to do it.

run command box opening error

When the Run Command box is disabled, you won’t able to open it using the hotkey or Search box, and you will see an error:

This operation has been cancelled due to restrictions in effect on this computer.

Disable Run Command in Windows 10

You can enable or disable the Run menu with two built-in features of Windows 10. These are:

  1. Using Group Policy Editor
  2. Using Registry Editor.

1] Using Group Policy Editor

This feature is available in Enterprise and Pro editions of Windows 10. Those using Home edition either need to add Group Policy to Windows 10 Home edition or use the second option.

At first, launch GPEDIT or Group Policy Editor.

Access Start Menu and Taskbar folder. The path is:

User Configuration > Administrative Templates > Start Menu and Taskbar

access start menu and taskbar and remove run menu from start menu setting

On the right-hand section, double-click on the Remove Run menu from Start Menu.

When a new window is opened, select Enabled, and press OK button. Now use Win+R hotkey or try to launch Run Command using the Search box, it won’t open.

select enabled option and save


To enable Run Command Box again, follow the above steps, select Not Configured in the last step, and save it.

2] Using Registry Editor

  1. Open Registry Editor
  2. Access Explorer key
  3. Create NoRun DWORD Value
  4. Set value data to 1.

Type regedit in the Search box and press Enter to open Registry Editor.

Access Explorer key. Its path is:

HKEY_CURRENT_USERSOFTWAREMicrosoftWindowsCurrentVersionPoliciesExplorer

disable Run Command (Win+R) box

On the right side, open the right-click context menu on an empty area, access the New menu, and click on DWORD (32-bit) Value. When a new value is created, rename it as NoRun.

create NoRun dword value

Double-click this NoRun value and a box will open. There, set Value data to 1, and press OK.

add 1 in value data field

Now restart File Explorer to let the changes take effect.

To enable Run Command again, follow the above steps, set Value data to 0, and restart File Explorer.

That’s all!

enable or disable run menu in windows 10

Source link

Leave a Reply

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