• Most Important

    How to Export & Import Firewall Rules using Command Prompt



    Windows 10, the Windows Defender Firewall is a security feature that checks incoming and outgoing network traffic and allows or blocks specific traffic depending on predefined rules.

    Although every installation of Windows 10 comes with the same set of default rules, you can always create new custom rules to allow or block apps from accessing the network. If you have created multiple firewall rules, and you don’t want to lose your settings after a clean installation, or you want to configure other devices with the same policy, you can export and import the Windows Defender Firewall rules using the advanced settings console and Command Prompt.

    In this video, you’ll learn the steps to export the current list of firewall rules as well as the steps to import the rules to a new installation of Windows 10.

    To export the current firewall policy using Command Prompt, use these steps:



    01. Click the search icon.

    02. Search for Command Prompt,

    03. Right-click the top result and select the Run as administrator option.

    04. Type the following command to export the Windows Defender Firewall rules and press Enter:

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



    Once you complete the steps, all the firewall rules will be exported to a .wfw, which you can then import on another installation of Windows 10.


    01. Click the search icon.

    02. Search for Command Prompt,

    03. Right-click the top result and select the Run as administrator option.

    04. Type the following command to export the Windows Defender Firewall rules and press Enter:

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









    After you complete the steps, the firewall rules will import overwriting the device's current policy settings.



    We’re using Command Prompt, but you can also use the commands on PowerShell.








    No comments

    ads