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 , clicking Control Panel, clicking Security, and then clicking Windows Firewall.
Click Change settings.
If you are prompted for an administrator password or confirmation, type the password or provide confirmation.
Click the Advanced tab, and then click Restore Defaults.
Restoring the default settings removes all of the Windows Firewall settings that you have made up to that point, for all network location types. This might cause some programs that you have allowed through the firewall to stop working.