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 (5)
RSS comments
1. 29-09-2011 03:02

You ROCK dude!!!! Fixed me right up!! THANKS!

2. 28-09-2011 20:50

fix2 worked perfect, many many tx's ! :)

3. 16-04-2011 00:30
Sonia

Worked a treat after trying for two days!! Thanks sooo much!! 
:eek

4. THANK YOU TOO!18-11-2010 03:10
James

Thankyou very much! 
Fix #3 worked for me finally, and after two weeks, I finally have WMI working again (no more bsod). Just a quick note on fix 2, I have seen a couple of versions that have: 
"mofcomp exwmi.mof 
net start winmgmt" 
at the end. Not sure if the sequence of mofcomp exwmi.mof is important (you have it placed earlier in your script). 
James

5. THANK YOU TOO!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

reinstall windows firewall

reinstall windows firewall xp

windows firewall repair

fix firewall xp

firewall repair

repair firewall

repair windows firewall

fix windows firewall

fix firewall windows xp

XP FIREWALL REPAIR

firewall fix

fix xp firewall

fix firewall

reinstall windows firewall xp sp3

how to fix firewall

restore windows firewall xp

repair xp firewall ics

reinstall windows xp firewall sp3

fix windows firewall xp

repair windows xp firewall

firewall repair tool

xp firewall fix