On Windows, sometimes you also need to reset Windows Security settings to default to fix some connection errors, stop working or simply want to return to the original state... We have some ways to reset Defender Firewall, according to the instructions below.
Reset Windows Security in the application
Step 1:
You open the Windows Security application on your computer, then click Firewall & network protection .

Step 2:
Next, look to the side, the user clicks Restore firewall to default to perform.

Switch to the new interface, we click Restore default to reset Reset Windows Security in the application.

How to reset Windows Security in Advanced Security
Step 1:
You also open the Windows Security application on your computer and click on Firewall & network protection. Continue to click on Advanced settings .

Step 2:
Users right-click on Windows Defender Firewall with Advanced Security on Local Computer and select Restore Default Policy.

Then click Yes to proceed with reinstalling Windows Security.

Reinstall Windows Security using PowerShell
Step 1:
Type PowerShell in the search bar and click Run as administrator to open PowerShell with Admin rights.

Step 2:
Display new interface, user enter command below to execute.
(New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()

After completing the steps, the PowerShell command will remove any changes you made to Windows Security.
How to reset Windows Security using Command Prompt
Step 1:
Type Command Prompt in the search bar and select Run as administrator to open it.

Step 2:
You enter the command below into the interface then press Enter to execute the command.
netsh advfirewall reset
