XP firewall: how to repair

Sunday, 25 October 2009

This article details a few steps you can take to repair your windows firewall and ICS(Internet connection sharing)

I had recently stumbled upon a problem with my XP machine, while trying to access advanced properties of a LAN(Local Area  Connection) network connection

Windows XP reported a problem when I attempted to access Local Area Connection 1->Properties->Advanced

 Windows XP firewall settingsMy combined solution, which took some 40 minutes of Google digging, but saved me from reinstalling Windows XP, was to combine several fixes found on various websites(to my shame, I lost the URLs thus I can't cite the original authors.

Fix #1: re-register firewall dlls so Windows knows to hook them in:

regsvr32 %WINDIR%system32atl.dll 
pause
regsvr32 %WINDIR%system32hnetcfg.dll 
pause

 

I added a couple of 'pause'  commands so you can see what's going on when running the code. This is a mild fix, just in case some firewall registry settings were mangled with.

Fix #2:rebuild the WMI(Windows management instrumentation) repository

net stop winmgmt
pause
cd %SystemDrive%
cd %windir%system32wbem
rd /S /Q repository
regsvr32 /s %systemroot%system32scecli.dll
regsvr32 /s %systemroot%system32userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
mofcomp exwmi.mof
mofcomp -n:rootcimv2applicationsexchange wbemcons.mof
mofcomp -n:rootcimv2applicationsexchange smtpcons.mof
mofcomp exmgmt.mof
pause

 

This re-registers some required dls as well, then recompiles the needed Firewall/ICS classes into WMI

Fix #3 Reinstall WMI alltogether. This step requires that your Windows XP source CD or installation path is available.

rundll32.exe setupapi,InstallHinfSection WBEM 132 %windir%infwbemoc.inf
pause

 

All these fixes are interpreter batch commands

To use a fix, create a text document, name it fix_N.cmd, paste the corresponding text into the file, save and double click to run.

We also have ready-to go files:

 Right click, choose 'Save as', save these files on your desktop and double click to run them.


Give us some social love (it really works now)!

Reddit! Del.icio.us! StumbleUpon! Yahoo! Swik!



Comments (1)
RSS comments
1. 30-11-2009 02:05
eneko

THANK YOU  
firewall xp in sp3 is working w file 
XP Firewall reinstall WMI Fix 3 
 
thank you :) :grin :p

Write Comment
  • Please keep the topic of messages relevant to the subject of the article.
  • Please don't use comments to plug your web site. Links are rel='nofollow'-ed
  • Please refresh the page if you're having trouble with the security image code
Name:
E-mail
Homepage
Title:
Comment:

:) :grin ;) 8) :p
:roll :eek :upset :zzz :sigh
:? :cry :( :x
Code:* Code

Last Updated ( Monday, 26 October 2009 )
 

Europe freelancer directory

Newsletter

Subscribe to TeachMeJoomla's newsletter
Name:
Email:


Auto tags

repair windows firewall

repair firewall

repair windows firewall xp

repair firewall xp

how to repair windows firewall

how to repair firewall

firewall fix

XP FIREWALL REPAIR

repair xp firewall

windows firewall repair

reinstall windows firewall xp

reinstall windows firewall

repair windows xp firewall

fix windows firewall xp

fix windows xp firewall

windows xp firewall fix

fix xp firewall

reinstall windows xp firewall

reinstall xp firewall

how to reinstall windows firewall

wmi windows firewall xp lost

how to fix windows firewall