Reset the Windows Firewall

Martin Brinkmann
Dec 19, 2007
Updated • May 18, 2014
Tutorials
|
3

If you have discovered a Virus or Trojan on your system you are advised to reset (or check) the settings of your firewall to make sure that no backdoor has been created by the malicious program.

Manipulation of settings of the firewall may allow hackers or the owner of the virus to break into the system again, even if the virus, trojan or code was removed from it by an administrator or user.

I'm not a huge fan of software firewalls as you can tell from my previous posts on the subject. Still, if you rely on it and use it you might find this information useful. There are basically two methods of resetting the Windows Firewall.

My favorite one is by using the command line and the command netsh firewall reset which is all you need. The firewall will be reset which makes sure that any malicious changes to it are gone. All of your rules and changes are gone as well but that is the price you have to pay.

reset windows firewall

Do the following if you want to use the command line:

  1. Tap on the Windows key and enter cmd to start a search for the program.
  2. Right-click on the cmd.exe file and select to run it as an administrator.
  3. Run the commend netsh firewall reset to reset the firewall to its default parameters.
  4. If you are running a newer version of Windows, use the following command instead: netsh advfirewall reset

You should receive a "command executed successfully" message in the end.

The second possibility would be to open the control panel, click on the Windows Firewall icon, there on the Advanced tab and finally on the Restore Defaults button.

The option is called Restore Default Policy in newer versions of Windows. When you click on it, you receive the following confirmation prompt.

---------------------------
Windows Firewall with Advanced Security
---------------------------
Restoring the default policy will reset all changes to settings of Windows Firewall that you have made since Windows was installed.  This may cause some programs to stop working.

If you are remotely managing this computer, the connection will be lost when default policy is restored.

If you select yes, all policies will be reset.

Please note that you do need to add rules that you may require to the firewall again. It is therefore recommend to back up your firewall rule sets regularly so that you can restore them at any point in time again.

Summary
Reset the Windows Firewall
Article Name
Reset the Windows Firewall
Description
Walks you through the steps of resetting Windows' built-in firewall application.
Author
Advertisement

Previous Post: «
Next Post: «

Comments

  1. Barry Goodman said on January 4, 2013 at 5:34 am
    Reply

    Due to an unidentified problem windows cannot display firewall settings.
    Can you help?
    I have Windows XP

  2. Jason said on December 20, 2007 at 12:59 am
    Reply

    Don’t forget to mention winsockxpfix. Sometimes when removing the torjan, virus, etc it messes with your tcpip stack and it needs to be reinstalled or reset

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

We love comments and welcome thoughtful and civilized discussion. Rudeness and personal attacks will not be tolerated. Please stay on-topic.
Please note that your comment may not appear immediately after you post it.