Windows 11 How to block application execution in a certain path (Windows 11)

  • Thread starter Thread starter a.kgsm
  • Start date Start date
A

a.kgsm

I want to block application execution in a certain directory. (For example, blocking C:\dontrun\*.exe)I tried two things to achieve this but neither is working. When I double click C:\dontrun\dontrun.exe, it just starts normally.What I tried are;1. Software Restriction Policies I created Additional Rules entries for two paths just to make sure; "C:\dontrun" and "C:\dontrun\*" Both are set to Disallow.2. AppLocker I created an Executable Rule for "%OSDRIVE%\dontrun\*" set to Deny for Everyone. I also set Application Identity Service to Automatic (Trigger start) by changing the Reg value of "\H

Continue reading...
 
Back
Top