Re: Turing of SP2 Firewall via registry entry?
From: Torgeir Bakken \(MVP\) (Torgeir.Bakken-spam_at_hydro.com)
Date: 08/29/04
- Next message: Roger Abell [MVP]: "Re: question about NoXPSP2Update"
- Previous message: Roger Abell [MVP]: "Re: Tcp concurrent connection limit in sp2"
- In reply to: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Next in thread: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Reply: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sun, 29 Aug 2004 03:08:49 +0200
David H. Lipman wrote:
> Togeir !
> I should have known. The man is a scripting genious.
>
> Information contained in -- WF_XPSP2.doc
>
> I read that about 2 or 3 weeks ago. Its not pretty. It needs the SP2 EXE extracted. I'd
> rather keep the EXE in its 266MB distriburtion executable so I dropped that idea. I want a
> solution to be done AFTER SP2 is installed either before rebooting the PC or something I can
> run in RunServicesOnce or RunOnce from the Registry upon the reboot.
Hi
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
-- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx
- Next message: Roger Abell [MVP]: "Re: question about NoXPSP2Update"
- Previous message: Roger Abell [MVP]: "Re: Tcp concurrent connection limit in sp2"
- In reply to: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Next in thread: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Reply: David H. Lipman: "Re: Turing of SP2 Firewall via registry entry?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|