0% found this document useful (0 votes)
37 views2 pages

Method 1: Call The "Setup Api Installhinfsection" Function To Install Windows Firewall

This document provides two methods to resolve a problem by installing Windows Firewall. Method 1 uses the "SetupAPI InstallHinfSection" function to install Windows Firewall by running commands. Method 2 adds a Windows Firewall entry to the registry by copying registry text to a file, merging the file into the registry, and then restarting and configuring Windows Firewall. If these methods do not work, it suggests reinstalling Windows XP SP2.

Uploaded by

Kamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views2 pages

Method 1: Call The "Setup Api Installhinfsection" Function To Install Windows Firewall

This document provides two methods to resolve a problem by installing Windows Firewall. Method 1 uses the "SetupAPI InstallHinfSection" function to install Windows Firewall by running commands. Method 2 adds a Windows Firewall entry to the registry by copying registry text to a file, merging the file into the registry, and then restarting and configuring Windows Firewall. If these methods do not work, it suggests reinstalling Windows XP SP2.

Uploaded by

Kamal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

To resolve this problem, use one of the following methods.

Method 1: Call the "Setup 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, and then press ENTER:
Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir
%\inf\netrass.inf
3. Restart Windows,
4. Click Start, click Run, type cmd, and then click OK.
5. At the command prompt, type the following command, and then press ENTER:
Netsh firewall reset
6. Click Start, click Run, type firewall.cpl, and then press ENTER. In the Windows
Firewall dialog box, click On (recommended), and then click OK.

Method 2: Add the Windows Firewall entry to the registry


Important This section, method, or task contains steps that tell you how to modify the
registry. However, serious problems might occur if you modify the registry incorrectly.
Therefore, make sure that you follow these steps carefully. For added protection, back up the
registry before you modify it. Then, you can restore the registry if a problem occurs. For
more information about how to back up and restore the registry, click the following article
number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
To add the Windows Firewall entry to the registry, follow these steps:
1. Copy the following text into Notepad, and then save the file as Sharedaccess.reg:
2. Windows Registry Editor Version 5.00
3.
4. [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess]
5.
6. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess]
7. "DependOnGroup"=hex(7):00,00
8. "DependOnService"=hex(7):4e,00,65,00,74,00,6d,00,61,00,6e,00,00,00,57,00,69,00,
\
9.
6e,00,4d,00,67,00,6d,00,74,00,00,00,00,00
10. "Description"="Provides network address translation, addressing, name resolution
and/or intrusion prevention services for a home or small office network."
11. "DisplayName"="Windows Firewall/Internet Connection Sharing (ICS)"
12. "ErrorControl"=dword:00000001
13. "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
14. 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,\
15. 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,\
16. 6b,00,20,00,6e,00,65,00,74,00,73,00,76,00,63,00,73,00,00,00
17. "ObjectName"="LocalSystem"
18. "Start"=dword:00000002
19. "Type"=dword:00000020
20.
21. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch]
22. "Epoch"=dword:00002cd0
23.

24. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s]
25. "ServiceDll"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\
26. 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,\
27. 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,\
28. 00
29.
30. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy]
31.
32. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\DomainProfile]
33.
34. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\DomainProfile\AuthorizedApplications]
35.
36. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\DomainProfile\AuthorizedApplications\List]
37. "%windir%\\system32\\sessmgr.exe"="%windir
%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,-22019"
38.
39. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\StandardProfile]
40.
41. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\StandardProfile\AuthorizedApplications]
42.
43. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameter
s\FirewallPolicy\StandardProfile\AuthorizedApplications\List]
44. "%windir%\\system32\\sessmgr.exe"="%windir
%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,-22019"
45.
46. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup]
47. "ServiceUpgrade"=dword:00000001
48.
49. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup\Inte
rfacesUnfirewalledAtUpdate]
50. "All"=dword:00000001
51.
52. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Enum]
53. "0"="Root\\LEGACY_SHAREDACCESS\\0000"
54. "Count"=dword:00000001
"NextInstance"=dword:00000001
55. Double-click Sharedaccess.reg to merge the contents of this file into the registry
and to create the Windows Firewall entry.
56. Restart Windows.
57. Click Start, click Run, type cmd, and then click OK.
58. At the command prompt, type the following command, and then press ENTER:
Netsh firewall reset
59. Click Start, click Run, type firewall.cpl, and then click OK.
60. Configure the Windows Firewall settings that you want to use.
If these methods do not work, reinstall Windows XP SP2.

You might also like