This PowerShell script blocks outbound internet connections for all executable files (*.exe) found in a specified folder and its subfolders (recursively). It allows users to specify a prefix for the firewall rule names, making it easy to identify the rules in the Windows Firewall or by default, uses specified folder name.
- Recursively finds all
.exefiles in a specified folder. - Blocks outbound internet connections for each found executable.
- Allows custom prefix for the firewall rule names. -- By default uses specified folder name.