How to Block EXE Files from Running in Windows 11 or 10
- First, open Local Group Policy Editor by right clicking on Windows start menu and Run then digit gpedit.msc and enter.
- When the Local Group Policy Editor window appears on your PC, browse to the following path in the left side panel: Computer Configuration > Windows Settings > Security Settings > Software Restriction Policies
- Right-click on the Software Restriction Policies folder and select New Software Restriction Policies in the context menu. If you see remove instead of add you have already added rules, exist from the menù and follow next step
- When you’re done, Windows will create some new subfolders. Right-click on the Additional Rules and choose New Path Rule
- In the “New Path Rule” window that appears, enter the path of the executable file that you want to stop from running. Ensure to put the *.exe at the end to block only executable files.
- Click Apply then OK
- Restart the PC for make the rules active.