Please let me know if this is what you are looking for...
Turing of SP2 Firewall via registry entry?
Newsgroups: microsoft.public.windowsxp.security_admin
"There are several solutions available to disable the firewall
programmatically without extracting the SP2 EXE file.
Here are two ways:
1) Adding the registry values mentioned, this can be done either
before or after SP2 is installed
The registry key path has changed since I posted that post (it is now
WindowsFirewall instead of FirewallPolicy):
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\WindowsFirewall\DomainProfile
\EnableFirewall=0 (DWORD data type)
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\
Microsoft\WindowsFirewall\StandardProfile
\EnableFirewall=0 (DWORD data type)
Those registry values are documented in WF_XPSP2.doc
WF_XPSP2.doc "Deploying Windows Firewall Settings for Microsoft
Windows XP with Service Pack 2" is downloadable from
http://www.microsoft.com/downloads/details.aspx?familyid=4454e0e1-61fa-447a-bdcd-499f73a637d1
If you want to disable the service as well:
sc.exe config SharedAccess start= disabled
2) The following command line will disable SP2's firewall (must be run
after SP2 is installed and at least one reboot is done):
netsh.exe firewall set opmode mode=disable profile=all
The netsh.exe syntax is also documented in WF_XPSP2.doc.
If you want to disable the service as well:
sc.exe config SharedAccess start= disabled
http://groups.google.ca/groups?hl=en&lr=&selm=e5NhVTWjEHA.536%40TK2MSFTNGP11.phx.gbl