Quantcast
Channel: Powershell – TheITBros
Viewing all articles
Browse latest Browse all 91

How to Reset Windows 10 Firewall Settings to Default

$
0
0
windows 10 firewall default

Built-in Windows Firewall is an important part of all versions of Windows operating system (starting from Windows XP SP2) and, when properly configured, allows to get the full control of all network activity on the computer and helps to protect your computer from hackers and malware programs.

Sometimes users create too many firewall rules and then get entangled in it. After they can get various problems with the network access of system and applications. But in that case you can delete all created Windows Firewall rules and restore it to default settings.

Tip. Before you reset your Windows Firewall configuration, we strongly recommend you to save the current settings. You can restore your configuration if necessary using this backup. To backup current Firewall rules, open Command prompt in elevated mode and execute the following command:

netsh advfirewall export "C:\Archive\firewall-config.wfw"

netsh command promt

The same thing you can do using GUI snap Windows Firewall with Advanced Security. Just click on the Export Policy link to save the existing firewall rules to the *.wfw file.

advanced security local computer

The easiest way to reset firewall rules to initial defaults is from Control Panel with item «Windows Firewall». To open the snap, press Win + R and run the command firewall.cpl, or press Win + X and follow to Control Panel -> Windows Firewall.

firewall cmd

firewall restore defaults

Click the Restore Defaults item in the left pane.

In a new window click on Restore Defaults button.

firewall restore default settings

Confirm deletion of settings by clicking Yes.

restore defaults confirmation

This will remove all your Windows Firewall settings, which was made after installing Windows, including rules and exceptions for all ports and programs. After that in the list of firewall rules you will find only standard system network access rules remain.

firewall advanced security

Keep in mind that after you reset your Windows Firewall settings, some applications, that you were previously allowed to access, might stop working (Remote Desktop (RDP) access at the default setting also does not work). To provide network access for such applications you have to manually re-create firewall rules or need to reinstall the entire programs.

Also you can restore the Windows Firewall default settings using Command prompt. Open elevated cmd.exe and execute the following:

netsh advfirewall reset

advfirewall cmd

You can restore Windows Firewall default settings using PowerShell. Open Powershell session and execute the following command:

(New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()

firewall powershell

The post How to Reset Windows 10 Firewall Settings to Default appeared first on TheITBros.


Viewing all articles
Browse latest Browse all 91

Trending Articles