This guide will show you how to enable or disable the Run Command (Win+R) box in Windows 11/10. Run allows you to quickly open applications but you might want to disable for other users to restrict them from accessing some critical system information. If you need to disable it for any reason, this guide will show you how.
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 11/10
You can enable or disable the Run menu with two built-in features of Windows 11/10. These are:
- Using Group Policy Editor
- Using Registry Editor.
1] Using Group Policy Editor
This feature is available in Enterprise and Pro editions of Windows 1/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
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.
To enable Run Command Box again, follow the above steps, select Not Configured in the last step, and save it.
2] Using Registry Editor
- Open Registry Editor
- Access Explorer key
- Create NoRun DWORD Value
- 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_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Explorer
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.
Double-click this NoRun value and a box will open. There, set Value data to 1, and press OK.
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!
How to enable Run command in Windows 11?
You can pretty easily trigger the Run dialog box using the Win + R keys. You can also open Run by searching it out of the Start Menu, just hit Win + S, type Run, and open it. This will do the trick for you.
Also Read: Clear Run command history in Windows.