Talk:Configuring Windows XP firewall
From WPKG | Open Source Software Deployment and Distribution
Reinstallation of the firewall
I use the following script for the installation
echo Stop SharedAccess service
%ComSpec% /c sc stop SharedAccess > NUL 2> NUL
echo Run SetupAPI InstallHinfSection
%ComSpec% /c rundll32 setupapi,InstallHinfSection Ndi-Steelhead 128 %windir%\inf\netrass.inf
echo Start SharedAccess Service
%ComSpec% /c sc start SharedAccess > NUL 2> NUL
<?xml version='1.0' encoding='utf-8'?>
<packages>
<package
id='windows-xp-firewall'
name='Windows XP firewall installation'
revision='4'
reboot='false'
priority='800'>
<check type='execute'
path='%ComSpec% /c sc qc SharedAccess | find "AUTO_START" > NUL'
condition='exitcodeequalto' value='0' />
<install cmd='"%SOFTWARE%\microsoft\windows\winxp\config\firewall\install.cmd"'/>
<upgrade cmd='"%SOFTWARE%\microsoft\windows\winxp\config\firewall\install.cmd"'/>
</package>
</packages>