This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# .SYNOPSIS | |
# This script blocks multiple programs by adding them to the Windows Firewall both as inbound and outbound rules. | |
# It also checks if a rule is already made. If it exists it will remove it and replace it with the new. | |
# .NOTES | |
# 1. List of the programs you want to block in Windows Firewall in $programs. | |
# 2. Remember quotation marks and a comma at the last program in the list. | |
# 3. You can change the rule names by changing ruleNameInbound and ruleNameOutbound. |