How you can export and import solely particular firewall rule on Home windows 10

Home windows Defender Firewall is a characteristic on Home windows 10, which screens incoming and outgoing community site visitors to permit or block site visitors relying on predefined guidelines.

Though each Windows 10 set up has the identical set of default guidelines, you may at all times create new customized guidelines to permit or block apps from accessing the community. Nonetheless, utilizing the Home windows Defender Firewall console, Command Immediate, or PowerShell, you may solely export and import all the rules, not a selected rule.

Nonetheless, if you want to import a single rule on a number of computer systems with out overwriting the present configuration, you may create a customized export file utilizing the Registry and Notepad.

On this guide, you’ll study the steps to export a selected rule that you may then import on the identical or different gadgets.

How you can export single firewall rule on Home windows 10

If you wish to export a single firewall rule, you’ll must export all the principles, after which modify the listing to incorporate solely the principles you wish to import utilizing the Registry and Notepad.

Exporting firewall guidelines utilizing Registry

To export firewall guidelines with the Registry, use these steps:

Warning: It’s essential to notice that modifying the Home windows Registry could cause severe issues if not used correctly. It’s assumed you recognize what you’re doing and that you’ve got created a full backup of your system earlier than continuing.
  1. Open Begin.

  2. Seek for regedit and click on the highest consequence to open the Registry.

  3. Browse the next path:

    HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicy
  4. Proper-click the FirewallRules key and choose the Export possibility.

    Registry export FirewallRules
    Registry export FirewallRules

  5. Sort a reputation of the .reg file — for instance, firewall-export-date.reg.

    Registry save reg file on Windows 10
    Registry save reg file on Home windows 10

  6. Click on the Save button.

When you full the steps, you’ll must open the exported file with Notepad to take away the entries that you simply don’t want or create a brand new .reg file containing solely the entries you wish to import.

Creating firewall export with one rule

To create export a single firewall rule, use these steps:

  1. Open File Explorer.

  2. Navigate to the folder that you simply exported the FirewallRules key.

  3. Proper-click the file, choose the Open with menu, and select the Notepad app.

    File Explorer context menu Open with option
    File Explorer context menu Open with possibility

  4. Choose the primary three traces:

  5. Proper-click the choice and click on the Copy possibility.

    Notepad copy text to clipboard
    Notepad copy textual content to clipboard

  6. Open Begin.

  7. Seek for Notepad and click on the highest consequence to open the app.

  8. Proper-click and choose the Paste possibility.

    Notepad paste text
    Notepad paste textual content

  9. Return to the file containing the FirewallRules key.

  10. Rigorously choose the road containing the firewall guidelines that you simply needed to export and click on the Copy possibility.

    Registry file exporting single firewall rule
    Registry file exporting single firewall rule

  11. Return to the brand new Notepad information containing the three traces you pasted earlier.

  12. Place the typing cursor beneath the third line.

  13. Proper-click and choose the Paste possibility.

    Registry file exporting single firewall rule
    Registry file exporting single firewall rule

  14. Repeat steps No. 10 by 13 if you wish to export a number of firewall guidelines.

  15. Click on the File menu.

  16. Click on the Save as possibility.

  17. Choose a descriptive file identify for the export — for instance, firewall-app-name-rule.reg.

  18. Click on the Save button.

After you full the steps, you’ll find yourself with an export file that accommodates solely the firewall guidelines that you simply wish to export.

How you can import single firewall rule on Home windows 10

To import a single firewall rule on Home windows 10, use these steps:

  1. Open File Explorer.

  2. Navigate to the modified .reg file containing the firewall that you simply wish to import.

  3. Double-click the .reg file.

  4. Click on the Sure button to verify.

    Import single firewall rule on Windows 10
    Import single firewall rule on Home windows 10

  5. Click on the OK button.

When you full the steps, you may open the Home windows Defender Firewall with Superior Safety console to verify the rule has been added.

We’re focusing this information on Home windows 10, however these directions also needs to work on Home windows 8.1 and Home windows 7.

About the Author

Leave a Reply

Your email address will not be published. Required fields are marked *