How to block multiple EXE files with in a folder with Windows Firewall

How to block multiple EXE files with in a folder with Windows Firewall

1)
 Paste ALL the following into NotePad (including the last line that's hidden from view) and obviously edit to show the folder path where the applications that you want to block are.

2) Save the text file and rename it to BlockInOut.bat

3) Right-click BlockInOut.bat and run as administrator.

4) Check your Inbound and Outbound firewall rules afterward

for %%G in ("C:\Program Files (x86)\Test Folder\*.exe") do (

netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=in action=block program="%%G" enable=yes profile=any
netsh advfirewall firewall add rule name="Blocked With Batchfile %%G" dir=out action=block program="%%G" enable=yes profile=any

)

Comments

Popular posts from this blog

Extracting and using a modified VMWare Player BIOS or UEFI firmware

Activate Synology Active Backup for Business for DSM 6

Windows 11 internet/account bypass