If you are in the process of migrating from one Windows server to another and wanted same firewall setting, you need to add all the rules manually or you can import/export the rule on windows server 2016 using the below steps.
Step 1 : Export Firewall Rules
- Go to Start >> Administrative Tools >> Windows Firewall and Advanced Security.
- Right, Click on Windows Firewall and Advanced Security and select Export Policy.
- Save the Exported policy rule file on your server.
- Once you save the rule file, it will generate a pop-up saying Policy successfully exported.
Step 2 : Import Firewall Rules
- First of all, you will need to share the firewall rule file to the Destination server where you are looking to export your firewall rules.
- Go to Windows Firewall and Advanced Security of your Destination server.
- Right, Click on Windows Firewall and Advanced Security and select Import.
- Once you import the policy, it will ask that you overwrite all the current rules. Please be sure that you wish to overwrite the current rule. Select the yes button to proceed with the import.
- Select the file which we have imported from the source server.
- It will give the below pop-up once the file is imported.
This is it. We are done with firewall import/export.