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.

3 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?

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 404 other followers

%d bloggers like this: