• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 777
  • Last Modified:

Restore Windows advanced firewall settings server 2008

I have a server that had problems getting the firewall started. I fixed that and manually recreated critical rules such as DNS, DHCP and SQL. I still cannot turn on file and print sharing and network discovery in Advanced Sharing Settings.

I saw all the suggestions about turning on services but that did not help.

I compared rules from another server and there are a lot of rules missing in Advanced firewall settings relating to network discovery and file sharing. I'd prefer not to manually try to recreate all those rules.

I am remoted into the server so I really don't want to attempt "restore defaults" in Windows Firewall. If I were on site, I would try that.

The firewall settings are in the registry but I don't want to export from one server to another. I'm afraid that may break something.

Is there anyway to SAFELY restore these settings.
  • 2
  • 2
1 Solution
Radhakrishnan RITCommented:

You can try restore the firewall default state. Have a look at this article which details the steps http://technet.microsoft.com/en-us/library/cc775896(v=ws.10).aspx

Also, you can try repair but unfortunately it's not a good option to do so, mistake can go to reinstall OS level.

Run the following commands one after another at Command Prompt.

rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf

netsh firewall reset

Next, exit the Command Prompt window and open the Control Panel. Here, double-click on the Windows Firewall option. Click Yes when a message is prompted asking you if you want to start the Windows Firewall service. When you select Yes, the service is started and the Windows Firewall dialog is displayed that you can use to configure your firewall.
If this does not enable you to restore the firewall, I think you may need to reinstall Windows.

Again, this will be at your own risk.
David Johnson, CD, MVPOwnerCommented:
with the server being remote that really limits your options. you've pretty much said no to every option that I can think of.. guess you're left with recreating each rule individually
ajdratchAuthor Commented:
As mentioned I didn't want to restore default settings because I was afraid i would lose remote connection.

I did find out that you can export firewall policy by right clicking on Windows Firewall with advanced security on local computer. I exported from a server that had similar settings and imported into this server. That worked great and I can now share the printers.
ajdratchAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for ajdratch's comment #a38413524

for the following reason:

Exported settings from another server and that fixed the firewall settings
David Johnson, CD, MVPOwnerCommented:
You state: "The firewall settings are in the registry but I don't want to export from one server to another. I'm afraid that may break something. Is there anyway to SAFELY restore these settings."

My answer was that you have to re-create these settings manually being the safest route.

Featured Post

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now