问题:昨天服务器出现问题,无法上网,网卡无法自动获取IP地址,手动设置也不能上网,经查看系统日志信息后,发现好多服务无法启动,那些服务都依赖于AFD服务,网上查找了原因,在此把方法和大家分享一下...
原因:由于误删除或病毒导致AFD服务被删除,从而引起其它相关服务器无法启动,如:DHCP服务..
解决方法:重新导入注册表,重新应用AFD服务
相关知识:Afd.sys用于支持Windows Sockets应用程序
afd.sys是Windows内核级的通讯程序,与winsock连接有关
注册表文件:(复制一下文件到文本文件中,然后修改后缀为".reg")
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAFD]
"DisplayName"="AFD"
"Description"="AFD 网络支持环境"
"Group"="TDI"
"ImagePath"="\SystemRoot\System32\drivers\afd.sys"
"Start"=dword:00000001
"Type"=dword:00000001
"ErrorControl"=dword:00000001
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAFDParameters]
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAFDSecurity]
"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,
00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,
00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,
05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,0 0,00,00,05,20,00,00,00,
20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,
00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,
00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00
[HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesAFDEnum]
"0"="Root\LEGACY_AFD\0000"
"Count"=dword:00000001
"NextInstance"=dword:00000001