Import Export specific Windows Firewall Rule
Solution 1
Go to the following key from Windows Registry and export it to a *.reg file:
HKLM\System\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules
Edit the file in any text editor and remove the entries you don't want. Or you can go to WFwAS, delete any other rules and keep only the ones you want. Then do the step described above. You won't need to edit the reg file as it already contains only what you want.
Import the reg file on the computer you need and you will add only your selected rules. That's all.
Or you can try Windows Firewall Control which has a feature that does this thing. It can export and import only the selected rules in XML format:
Solution 2
You can select only the rules you want to export, then click the "export list" button and when the explorer window opens up you can tick the option to "export only highlighted rules" (just underneath the file name input field)
Related videos on Youtube
JackLock
Just like everyone I am here to learn 'n share knowledge.
Updated on September 18, 2022Comments
-
JackLock over 1 year
How do I Export and Import specific Window Firewall rule (both Inbound and Outbound) ?
I can do Import / Export policy but it will use ALL rules not specific rule. Same with Export List, it can export all list of rules of Inbound or Outbound in plain CSV file but it is not helpful because no way to import it back.
I looked at
netsh firewall
andnetsh advfirewall firewall
too but they too don't seem to have option to export / import individual rule.I am just wondering if it is even possible to archive this. I am using Windows 7 Professional
-
Justin Emlay about 5 yearsThat's export LIST, not export RULE.
-
Moab over 4 yearsWFC, best software ever for windows, it worth noting to pay for the upgraded version, then you can block outbound Windows processes and software also.
-
fantabolous over 4 yearsRather than repeat his answer, you could just edit his answer to provide details / clarity so we don't have duplicate answers