Hopeless? Win Svr 2008 firewall drama
Hey all, quick one for folks smarter than me...
Is there a way to reset Windows Firewall without actually opening up the firewall app/msc component?
We recently had a batch of rules applied to two servers via powershell script. One server (svr 2008 r2, postgres, hmailserver, strawberry perl) works fine after the push, one of many over a long period. Another server (svr 2008 r2, apache, PHP, MySQL, strawberry perl) had the same rules applied by the same script,m but has now gone to 50% CPU utilisation and can no longer open the firewall msc object or the control panel app. The firewall seems to have shit itself. Things are fine if we disable the firewall service. Turn it back on, and the CPU spikes to 50% and stays there (although it fluctuates a lot, it stays roughly 50% for hours).
Any ideas on this? Would be great if we could reset the firewall rules (without having to turn the service on) and re-apply the script's changes one at a time to see what the issue was. I am guessing it's a lost cause and we'll have to rebuild the damn thing, but I would be very pleased to be shown that I am wrong.
Thanks all
Posted Jan 9, 2017, 12:45 PM UTC
Hi,
Maybe you could try using the netsh command line tool : https://support.microsoft.com/en-us/kb/947709 ( Example 7: Restore policy defaults ) or just google something like " netsh firewall reset " " reset windows firewall command line ".
bye
thanks mate, will give that a go