windows防火墙无法启动,服务不存在

系统的防火墙无法启动,系统服务里面也没有防火墙的服务,用下面第一种方法,导

入注册表,重启服务器,在服务里面有防火墙的服务了,然后启动就好了,需要重新配置防火墙

在控制面板中启动防火墙的时候提示无法识别等,然后在命令行输入 Netsh firewall reset提示服务没

有安装,于是我进入系统的服务管理界面根本找不到windows firewall/internet connection sharing(

ics),于是我们要重新安装这个服务。 

安装前先警告一下:如果正确修改注册表通过注册表编辑器或通过其他方法可能发生Serious问题。这些

问题可能需要重新安装操作系统。Microsoft不能保证能够解决这些问题。修改注册表需要您自担风险。 

  

要将Windows防火墙项添加到注册表, 请按照下列步骤操作:  1.将以下文本复制到记事本,然后保存文件为 Sharedaccess.reg:  Windows Registry Editor Version 5.00  [-HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess]  "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 prevention 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_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Epoch]  "Epoch"=dword:00002cd0  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters]  "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_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\DomainProfile]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\DomainProfile\AuthorizedApplications]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\DomainProfile\AuthorizedApplications\List]  "%windir%\\system32\\sessmgr.exe"="%windir%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,

-22019"  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\StandardProfile]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\StandardProfile\AuthorizedApplications]  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy

\StandardProfile\AuthorizedApplications\List]  "%windir%\\system32\\sessmgr.exe"="%windir%\\system32\\sessmgr.exe:*:enabled:@xpsp2res.dll,

-22019"  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup]  "ServiceUpgrade"=dword:00000001  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Setup\InterfacesUnfirewal

ledAtUpdate]  "All"=dword:00000001  [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Enum]  "0"="Root\\LEGACY_SHAREDACCESS\\0000"  "Count"=dword:00000001  "NextInstance"=dword:00000001  2、双击 Sharedaccess.reg,将此文件的内容合并到注册表可创建防火墙项。  3、再次打开控制面里面的防火就可以正常启动了。  这个方法已经测试成功!          

 

另外还可尝试这个方法: 

调用“安装 API InstallHinfSection”函数以安装Windows防火墙  要安装Windows防火墙, 请按照下列步骤:

  1.单击 开始 , 单击 运行 , 类型 cmd然后单击 确定 。

  2.在命令提示符下,键入以下命令行,回车:  Rundll32 setupapi,InstallHinfSection Ndi-Steelhead 132 %windir%\inf\netrass.inf 

3.重新启动计算机 

4.单击 开始-运行(快捷键 Windows + R),输入cmd,确定。 

5.在命令提示符,键入以下命令:Netsh firewall reset,回车。 

6.单击 开始-运行,输入firewall.cpl,回车。 

7.在Windows防火墙对话框中单击 On(推荐),确定。 

posted @ 2014-03-31 13:29  AppleCn  阅读(2197)  评论(0编辑  收藏  举报