Windows Firewall via Registry Scripts

How many times have you disabled a windows firewall in your enterprise environment?

Oooh shock and awe. “that is not Microsoft standards”! For shame. Yet every enterprise is guilty. Yes I am looking at you.

So since we are past the “That is not correct” part. Let us focus on turning off the firewall to allow windows devices to work with duct tape and bailing wire networks.

Alot of times network/system admins will create a .wfw to be imported. While that is awesome. I have been a fan of just creating Registry entries for this.

Good bad or whatever, below is how I do it via registry:

 

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\SharedAccess\Parameters\FirewallPolicy\FirewallRules]
“{4ECA89BC-8A85-4F7B-AB07-C09372B0CB5B}”=”v2.10|Action=Allow|Active=TRUE|Dir=In|Protocol=6|Profile=Domain|Profile=Private|LPort2_10=50060-50061|Name=HappyLittlePorts|”
“{57752961-CF32-455B-B128-993BCEB1C123}”=”v2.10|Action=Allow|Active=TRUE|Dir=Out|Protocol=6|Profile=Domain|Profile=Private|RPort2_10=50060-50061|Name=HappyLittlePorts|”

As always leave me some comments thanks.

 
This entry was posted in Interesting, Microsoft, Uncategorized, Windows. Bookmark the permalink.

Leave a Reply