Quick Fix: Reset Windows Firewall SBS & Windows Server Essentials

windows firewallWhilst troubleshooting a problem on a server, have you ever reset Windows Firewall back to Defaults?

It would seem like a logical step in some cases, however it could have unexpected consequences.

Did you know you could export the policy from Windows Firewall?

Under Advanced Settings, You can right Click ‘Windows Firewall with Advanced Security’ and click ‘Export Policy’

Export Firewall Policy

Of course the reverse is true,and you can then Import a previously exported policy.  An import will overwrite the existing policy.

This is all fine, however, if on an Essentials OS you happened to click ‘Restore Defaults’ you would have just wiped out a few custom rules, and disabled some other built-in ones.

Restore Defaults

But which? How to get them back? There is no function built in to do this. So you need to rely on having an existing Essentials server to compare with or phoning a friend.

Until now.

This is something i have thought should be included in the SBS Essentials and Windows Server 2012 Essentials OS for a long time.

After having this very question pop up in the forum recently i decided to set to work and write a script to restore the Essentials firewall customisations. You can download them from here:

SBS 2011 Essentials: http://gallery.technet.microsoft.com/SBS-2011-Essentials-Repair-cc339f45

Windows Server 2012 Essentials: http://gallery.technet.microsoft.com/Repair-Windows-Firewall-25814cce

Just open up a PowerShell window and run the script and your firewall will be magically repaired!

Capture

About Robert Pearman
Robert Pearman is a UK based Small Business Server enthusiast. He has been working within the SMB IT Industry for what feels like forever. Robert likes Piña colada and taking walks in the rain, on occasion he also enjoys writing about Small Business Technology like Windows Server Essentials or more recently writing PowerShell Scripts. If you're in trouble, and you can find him, maybe you can ask him a question.

11 Responses to Quick Fix: Reset Windows Firewall SBS & Windows Server Essentials

  1. Paul says:

    Good job!

  2. david says:

    good article – having a problem starting powershell in downloads – windows won’t allow me to write destination script 100% as you have done can you help please ?

  3. Hi Robert thanks for the article – I am trying to follow it to the letter but can’t get the power shell to start in the same way you can – how can I get it the same as yours?

  4. Jeremy Koch says:

    hmmm i cant get this to work for WSE 2012 R2. i get an error saying its for SBS 2011 Essentials only…yet i downloaded the WSE 2012 version.
    help please!

  5. Jeremy Koch says:

    ok so i worked out how to fix this script so it will run on WSE 2012 R2. this fixed my firewall too!
    you need to change the name result filter of the OS so it will run. add the ‘R2’ into the name and you are good to go :)

    • Ill amend, not looked at this for a while.

      • Jeremy Koch says:

        thank you Robert. It would be good to have the settings verified that they are 100% correct for WSE 2012 R2…
        Or even better would be a post of the exported firewall rules from a fresh WSE2012 R2 install :)

  6. Is this still good for Server 2012 Essentials?

  7. golfkinguk says:

    Do you have something similar for SBS2011?

  8. Matthew says:

    Do you have something similar for Server 2016 for essentials dashboard?

Leave a reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: