Reset Windows Firewall to its defaults, at command prompt.
Open Command Prompt as administrator, and run the following command:
netsh advfirewall reset
Reset Windows Firewall to its defaults, using PowerShell.
Open PowerShell as administrator, and run the following command:
(New-Object -ComObject HNetCfg.FwPolicy2).RestoreLocalFirewallDefaults()
Links: