[FIX] Can not Connect to Network / Internet / Get DHCP after Virus Removal
Did your Windows XP computer get a bad virus infection, remove the virus and now you can not get an IP address from your router via DHCP?
In your system tray (usually bottom right of your screen) do you have two little computers with a ball floating back and forth over them?
The issue is that the virus removal software that you used has corrupted a service that DHCP depends on to get an IP address from your router. The service that is corrupted is AFDSERV.
Below is one fix for this issue and hopefully the fix for yours.
- We need to replace the damaged sys file first which is afd.sys. You can get this file off of any Windows XP system, just do a search for afd.sys and copy the one in the C:/Windows/System32/Drivers folder.
- Copy the good afd.sys to the C:/Windows/System32/Drivers folder on the non working machine and overwrite what is there.
- Now we need to fix some damaged registry entries:
- Copy the below text and paste it in a notepad document. Only use notepad not word or wordpad because they add extra formatting that can mess things up.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD]
“DisplayName”=”AFD”
“Description”=”AFD Networking Support Environment”
“Group”=”TDI”
“ImagePath”=”\\SystemRoot\\System32\\drivers\\afd.sys”
“Start”=dword:00000001
“Type”=dword:00000001
“ErrorControl”=dword:00000001[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Parameters]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Security]
“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,00,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_MACHINE\SYSTEM\CurrentControlSet\Services\AFD\Enum]
“0″=”Root\\LEGACY_AFD\\0000″
“Count”=dword:00000001
“NextInstance”=dword:00000001 - Next save the notepad file as afd.reg
- Navigate to the afd.reg file, right click it, then click merge, then click yes on the popup.
- Now reboot your computer and hopefully your internet will work again.
Let me know in the comments if this does or does not work for your computer.
February 15th, 2012 at 6:48 pm
I did this twice and am still not only having the problem, but finding documents saying it looked at my phone and ipod as well. How do I get rid of this hell? Still no connection to net, and anti virus does not catch it.