How to disable Windows Firewall service in XP SP2

G

Guest

Does anyone know how to disable the Windows Firewall/Internet Connection
Sharing service in Windows XP SP2 in the registry? I know how to manually
disable the service under Computer Management -->Services, but I would like
to see if I can add/modify a registry key to do the trick. Any ideas would
be appreciated. Thanks!
 
T

Torgeir Bakken \(MVP\)

Amanda said:
Does anyone know how to disable the Windows Firewall/Internet Connection
Sharing service in Windows XP SP2 in the registry? I know how to manually
disable the service under Computer Management -->Services, but I would like
to see if I can add/modify a registry key to do the trick. Any ideas would
be appreciated. Thanks!
Hi,

The VBScript below sets those two registry values that will disable
the WinXP SP2 firewall.

Put the VBScript below in a .vbs file and run it by double-clicking
on it.


'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")

oShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall" _
& "\DomainProfile\EnableFirewall", 1, "REG_DWORD"

oShell.RegWrite "HKLM\SOFTWARE\Policies\Microsoft\WindowsFirewall" _
& "\StandardProfile\EnableFirewall", 1, "REG_DWORD"

MsgBox "Done, please reboot computer", vbSystemModal+vbInformation

'--------------------8<----------------------
 
T

Tom Porterfield

Amanda said:
Does anyone know how to disable the Windows Firewall/Internet Connection
Sharing service in Windows XP SP2 in the registry? I know how to manually
disable the service under Computer Management -->Services, but I would like
to see if I can add/modify a registry key to do the trick. Any ideas would
be appreciated. Thanks!

Services are stored in the registry at
HKLM\System\CurrentControlSet\Services. The Firewall/Internet
connection service is called SharedAccess. Set the Start value there to
4 to disable the service. Note that changing that won't stop the
service. To stop the service open a command prompt window and enter the
following command:

net stop SharedAccess
--
Tom Porterfield
MS-MVP Windows
http://support.telop.org

Please post all follow-ups to the newsgroup only.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top