Skip to content

Instantly share code, notes, and snippets.

View t-wolfeadam's full-sized avatar

Tyler t-wolfeadam

  • Creatura.ai
  • Chicagoland, IL
View GitHub Profile
@ScribbleGhost
ScribbleGhost / BlockMultipleProgramsInWindowsFirewall.ps1
Last active May 2, 2025 06:41
Block multiple programs in Windows firewall by adding inbound and outbound rules. ⚠ Run as admin in Powershell. Read the description thoroughly ❗
#
# .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.