Although every system has the same default rules, you can always create new custom rules to prevent apps from accessing the network. However, using the Microsoft Defender Firewall console, Command Prompt, or PowerShell, you can only export and import all the rules, not a specific firewall rule. If you have to import a single rule on multiple computers without overwriting the current configuration, you can create a custom export file using the Registry and Notepad. This guide will teach you the steps to export a specific rule that you can import on the same or other devices.

Export single firewall rule on Windows 10 Import single firewall rule on Windows 10

Export single firewall rule on Windows 10

To export a single firewall rule, you have to export all the rules and then modify the list to include only the rules you want to import using the Registry and Notepad. Here’s how.

Export firewall rules from Registry

To export firewall rules with the Registry on Windows 10, use these steps: Once you complete the steps, you’ll need to open the exported file with Notepad to remove the entries you don’t need or create a new “.reg” file containing only the entries you want to import.

Create firewall export with one rule

To export a single firewall rule on Windows 10, use these steps: After completing the steps, you’ll end up with an export file containing only the firewall rules you want to export.

Import single firewall rule on Windows 10

To import a single firewall rule on Windows 10, use these steps: Once you complete the steps, you can open the Microsoft Defender Firewall with the Advanced Security console to confirm the rule has been added.

This guide works on Windows 10, but these instructions should apply to Windows 8.1 and 7. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.