Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to migrate Windows Server 2008 (and Windows 7) firewall exceptions to a new environment?


  • SQL Server
  • Subversion
  • remote access?

Is if possible to use scripts like powershell?


share|improve this question
up vote 1 down vote accepted

wf.msc allows remote management of Windows Firewall running on other computers. You could connect and then use copy/paste to paste rules to the remote machine.

The easier alternative though is to use Windows Firewall's import/export feature (either via wf.msc or through netsh: "netsh advfirewall export c:\somedir\rules.wfw").

share|improve this answer
Thanks that did the trick – Oscar Cabrero Mar 1 '10 at 19:27
Which of the alternatives did the trick? Didn't understand how to connect remotely using wf.msc...? – tobefound Apr 1 '11 at 8:03

I did an export and import by selecting the rule and clicking copy. I then RDP'd into the other servers, opened Firewall rules and clicked paste. It copied the rule. I also did this with four other servers.

share|improve this answer
This is, at most, a partial answer to the question. The question is how to migrate the entire exception set or chunks of it relating to a piece of software. – Mark Jun 12 '15 at 17:54
+1 - This was all I needed. – NightOwl888 Oct 10 '15 at 2:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.