First, firewall configuration error
Start--> Run-->gpedit.msc
At this point, Group Policy is turned on
Expand on the left
Computer Configuration--> Administrative Templates--> Network--> network connection-->windows Firewall
And then here are some of the options for Group Policy enforcement restrictions, and find the configuration you need to define it as enabled and reset back to "Not configured".
(Some software changes in the registry, sometimes in Group Policy does not appear, may be changed after the Group Policy is still not configured, so to configure, and then configure back)
Second, the security Centre was closed
The firewall enabled option is dimmed and cannot be enabled, and prompts "Some settings are controlled by Group Policy because of security considerations"
Run services.msc Open "services"
Set the Security Center to automatic and enable.
Set Windows Firewall/internet Connection Sharing (ICS) to automatic and enabled.
Set the application Layer Gateway Service to Automatic and enabled.
If you still cannot enable the firewall, perform the following steps:
Run Regedit.exe open the registry and delete the following two items:
HKEY_LOCAL_MACHINE SOFTWARE Policies Microsoft WindowsFirewall
HKEY_CURRENT_USER SOFTWARE Policies Microsoft WindowsFirewall
(At least one item can be found)
Restart Windows firewall/internet Connection Sharing (ICS) in the service
If you continue to prompt "Some settings are controlled by Group Policy because of security considerations", it will not affect use.
Third, the system file is missing
The Sharedaccess.reg file represents the Windows Firewall service because the Sharedaccess.reg file is missing or corrupted.
Note: Windows Firewall service replaces the Internet Connection Firewall (ICF) service in earlier versions of Windows XP SP2.
To resolve this issue, use one of the following methods.
[Method 1]: invoke the Install API installhinfsection function to install Windows Firewall
To install Windows Firewall, follow these steps:
1. Click Start, click Run, type cmd and then click OK.
2. At the command prompt, type the following command line, enter:
Rundll32 setupapi,installhinfsection Ndi-steelhead 132%windir%infnetrass.inf
3. Restart your computer
4. Click Start-run (shortcut key Windows + R), enter cmd, OK.
5. At the command prompt, type the following command: Netsh firewall reset, enter.
6. Click Start-Run, enter Firewall.cpl, return.
7. Click on (Recommended) In the Windows Firewall dialog box to determine.
[Method 2]: Windows Firewall entry added to registry
Warning: Serious problems may occur if you modify the registry correctly through Registry Editor or through other methods. These issues may require you to reinstall your operating system. Microsoft cannot guarantee that these issues will be resolved. It is at your own risk to modify the registry.
To add Windows Firewall entries to the registry, follow these steps:
1. Copy the following text to Notepad, and then save the file as Sharedaccess.reg:
Windows Registry Editor Version 5.00
[-hkey_local_machinesystemcurrentcontrolsetservicessharedaccess]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccess]
"Dependongroup" =hex (7): 00,00
"DependOnService" =hex (7): 4e,00,65,00,74,00,6d,00,61,00,6e,00,00,00,57,00,69,00,
6e,00,4d,00,67,00,6d,00,74,00,00,00,00,00
"Description" = "provides network address translation, addressing, name resolution and/or-intrusion services for A home or small office network.
"DisplayName" = "Windows firewall/internet Connection Sharing (ICS)"
"ErrorControl" =dword:00000001
"ImagePath" =hex (2): 25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,
74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,
00,76,00,63,00,68,00,6f,00,73,00,74,00,2e,00,65,00,78,00,65,00,20,00,2d,00,
6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00
"ObjectName" = "LocalSystem"
"Start" =dword:00000002
"Type" =dword:00000020
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessepoch]
"Epoch" =dword:00002cd0
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparameters]
"ServiceDll" =hex (2): 25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,
00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,
69,00,70,00,6e,00,61,00,74,00,68,00,6c,00,70,00,2e,00,64,00,6c,00,6c,00,00,
00
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparameters
Firewallpolicydomainprofile]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy
Domainprofileauthorizedapplications]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy
Domainprofileauthorizedapplicationslist]
"%windir%system32sessmgr.exe" = "%windir%system32sessmgr.exe:*:enabled:
@xpsp2res. dll,-22019 "
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy
Standardprofile]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy
Standardprofileauthorizedapplications]
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessparametersfirewallpolicy
Standardprofileauthorizedapplicationslist]
"%windir%system32sessmgr.exe" = "%windir%system32sessmgr.exe:*:enabled:
@xpsp2res. dll,-22019 "
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccesssetup]
"Serviceupgrade" =dword:00000001
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccesssetup
Interfacesunfirewalledatupdate]
"All" =dword:00000001
[Hkey_local_machinesystemcurrentcontrolsetservicessharedaccessenum]
"0" = "rootlegacy_sharedaccess000"
"Count" =dword:00000001
"Nextinstance" =dword:00000001
2. Double-click Sharedaccess.reg to merge the contents of this file into the registry to create a firewall entry.
3. Restart Windows.
4. Click Start-Run, enter cmd, OK.
5. At the command prompt, type the following command: Netsh firewall reset, enter.
6. Click Start-Run, enter Firewall.cpl, OK.
7. Configure and use Windows firewall settings.
If none of these methods work, please reinstall Windows XP SP3/2003/7 with a different disk.