The way to export and import firewall guidelines on Home windows 10

On Home windows 10, the Home windows Defender Firewall is a safety function that checks incoming and outgoing community site visitors and permits or blocks particular site visitors relying on predefined guidelines.

Though each set up of Home windows 10 comes with the identical set of default guidelines, you possibly can at all times create new custom rules to permit or block apps from accessing the community. In case you have created a number of firewall guidelines, and also you don’t wish to lose you settings after a clear set up, otherwise you need configure different gadgets with the identical coverage, you possibly can export and import the Home windows Defender Firewall guidelines utilizing the superior settings console and Command Immediate.

On this guide, you’ll be taught the steps to export the present record of firewall guidelines in addition to the steps to import the foundations to a brand new set up of Windows 10.

The way to export and import firewall guidelines utilizing Home windows Safety

If you wish to backup all of the Home windows 10 firewall guidelines, so you possibly can then restore to a different set up, you need to use the Home windows Safety app.

Backing up firewall guidelines

To export firewall guidelines utilizing Home windows Safety, use these steps:

  1. Open Home windows Safety.

  2. Click on on Firewall & community safety.

  3. Click on the Superior settings possibility.

    Windows Security firewall advanced settings option
    Home windows Safety firewall superior settings possibility

  4. Proper-click the Home windows Defender Firewall with Superior Safety on Native Pc merchandise and choose the Export Coverage possibility.

    Windows 10 firewall export rules option
    Home windows 10 firewall export guidelines possibility

  5. Choose a location to retailer the record.

  6. Kind a descriptive identify for the record – for instance, firewall-rules.

    Export firewall rules to wfw file
    Export firewall guidelines to wfw file

  7. Click on the Save button.

  8. Click on the OK button.

When you full the steps, the firewall guidelines will export within the wfw file you could simply import to the identical or completely different pc.

Restoring firewall guidelines

To import firewall guidelines from an exported file, use these steps:

  1. Open Home windows Safety.

  2. Click on on Firewall & community safety.

  3. Click on the Superior settings possibility.

    Windows Security firewall advanced settings option
    Home windows Safety firewall superior settings possibility

  4. Proper-click the Home windows Defender Firewall with Superior Safety on Native Pc merchandise and choose the Import Coverage possibility.

    Windows 10 firewall import rules option
    Home windows 10 firewall import guidelines possibility

  5. Click on the Sure button to substantiate that importing a coverage will overwrite all the present guidelines.

  6. Choose the .wfw file.

    Import firewall rules to wfw file
    Import firewall guidelines to wfw file

  7. Click on the Open button.

  8. Click on the OK button.

After you full the steps, the coverage will overwrite the present guidelines with those within the .wfw file.

The way to export and import firewall guidelines utilizing Command Immediate

Alternatively, you can too export and import firewall guidelines on Home windows 10 utilizing Command Immediate.

Exporting firewall guidelines

To export the present firewall coverage utilizing Command Immediate, use these steps:

  1. Open Begin.

  2. Seek for Command Immediate, right-click the highest end result, and choose the Run as administrator possibility.

  3. Kind the next command to export the Home windows Defender Firewall guidelines and press Enter:

    netsh advfirewall export "C:firewall-rules.wfw"

    Export firewall rules using netsh command
    Export firewall guidelines utilizing netsh command

When you full the steps, all of the firewall guidelines will probably be exported to a .wfw, which you’ll be able to then import on one other set up of Home windows 10.

Importing firewall guidelines

To import firewall guidelines on Home windows 10 with Command Immediate, use these steps:

  1. Open Begin.

  2. Seek for Command Immediate, right-click the highest end result, and choose the Run as administrator possibility.

  3. Kind the next command to export the Home windows Defender Firewall guidelines and press Enter:

    netsh advfirewall import "C:firewall-rules.wfw"

    Import firewall rules using netsh command
    Import firewall guidelines utilizing netsh command

After you full the steps, the firewall guidelines will import overwriting the system present coverage settings.

We’re utilizing Command Immediate, however you can too use the instructions on PowerShell.

About the Author

Leave a Reply

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