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
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
Post a Comment