How to Repair Windows Firewall Files
A problem with the Windows Firewall files is usually a result of a faulty update or third-party firewall that caused a bug or conflict. The most common and obvious sign of a problem is when the Windows firewall refuses to turn on or off. In other cases, the Windows firewall may not save any changes, such as a modification to the exemptions. Fortunately, in most cases you can correct this problem from within the Command Prompt.
Click on "Start," then "All Programs" and select "Accessories."
Right-click "Command Prompt," and select "Run as administrator."
Type "netsh firewall reset" if you are using Windows XP. If using Windows Vista or 7 type "netsh advfirewall firewall reset." Press "Enter" after typing the command. This resets all of your firewall settings to the default values.
Type "netsh winsock reset" and press "Enter." This resets all of your network settings to their default values.
Type "netsh firewall set opmode mode = disable" and press "Enter."
Insert your Windows installation disc.
Type "sfc /scannow" and press "Enter." This will scan Windows system files and replace damaged ones with the default from your Windows installation disc.Press "Cancel," if prompted to reboot your computer.
Type "netsh firewall set opmode mode = enable exceptions = enable" and press "Enter."
Type "Exit." This closes the Command Prompt.
Press "Windows" key and "R" key simultaneously.
Type "Services.msc" and press "Enter."
Click the "Extended" tab.
Scroll down and cick to highlight "Windows Firewall."
Click "Restart the service" on the top-left.
Restart your computer.
References & Resources
- Microsoft: Troubleshooting Windows Firewall in Microsoft Windows XP
- Microsoft: How to Determine and to Recover From Winsock2 Corruption in Windows Server 2003, in Windows XP, and in Windows Vista
- Microsoft Tech Net: Netsh AdvFirewall Commands
- Microsoft: Troubleshooting Windows Firewall settings in Windows XP Service Pack 2 for advanced users
- Microsoft Tech Net: Netsh Commands for Windows FIrewall with Advanced Security
- Windows Security: Customizing Windows Firewall
- Microsoft Tech Net: Turn Windows Firewall On or Off