If you've changed some Windows Firewall settings and you want to undo your changes, you can restore the firewall settings to the original (default) settings.
Open Windows Firewall by clicking the Start button , and then clicking Control Panel. In the search box, type firewall, and then click Windows Firewall.
In the left pane, click Restore defaults.
If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
In the dialog box that appears, click Restore defaults. At the confirmation prompt, click Yes.
Restoring the default settings removes all of the Windows Firewall settings that you've made for all network location types. This might cause some programs that you've previously allowed through the firewall to stop working.