Link to home
Start Free TrialLog in
Avatar of osa2
osa2

asked on

reinstall afd network

Hi all,

I have a windows XP SP3 pc with network problem.
Everything was working okay. And one day it stopped. (maybe spyware or crapware)
My network adapter is showing IP 0.0.0.0 and speed is at 10 Mbit/s wich isn't normal.

So, I tried to investigate the problem and all is pointing to afd.sys
When I went to look in device mangement -> show hidden devices -> non plug-and-play I saw the afd was listed and with a yellow error sign.
I thought delete the afd and search for new hardware would do the trick. But I have deleted the afd and search new hardware doesn't seem to find the afd. I don't see any other option to re-add the afd non plug and play device.

Any help on fixing this?

I also tried the winsockFIX.exe -> no result
netsh int ip reset -> no result
At the moment I'm running a System file check to see if I can fix it this way.
But it is still running.

Any help on fixing the AFD for network?

Thanks
Avatar of Dr. Klahn
Dr. Klahn

If you can roll back to a recent restore point before the problem occurred, it will probably be simpler than chasing a problem in the TCP/IP subsystem.

Assuming that a clean restore can be done, it should then be possible to do a malware scan, an antivirus scan, and a rootkit scan.

If those are all clean, you can then bring the system up to date with Windows Update.  Then proceed with any changes made to the system since the restore point, and see which one caused the problem.
Save the following as AFD.REG, and import it. Reboot, and the AFD service will be restored....
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]
"DefaultSendWindow"=dword:0000fc00
"CitrixBackupDefaultSendWindow"=dword:00000000

[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

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of johnb6767
johnb6767
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi John,

I am facing the similar problem. AFD driver is uninstalled. Need some clarification on your solution.

How to import the afd.reg file?

Thanks & Regards,


Write the afd.reg file using a text editor.  Close the file.

Right-click on the file.  The options pane will drop down.  Select "Import to registry."  This must be done from an administrator account.
Thanks DrKlahn,

Upon right clicking, "import to registry" didn't appear. Instead I selected "merge". But that did not resolve the issue. DHCP is still not starting & I could not see "AFD" under the "non Plug & Play drivers".

Appreciate your help.
There is a little-used option in Device Manager that may help.

At the top of the window, select "View" and enable "Show hidden devices."

Even after enabling "show hidden devices"....."AFD" under the "non Plug & Play drivers" could not be found.

Can static ip be used & internet connection be restored w/o DHCP running?
Are you using Zone Alarm or Endpoint Security, possibly?

Microsoft indicates here (October 3) that there is a severe incompatibility with those products.  Since that is close to the date of your question ...
See also Microsoft KB285173.

To answer your question above:

Can static ip be used & internet connection be restored w/o DHCP running?

From what I have read, TCP/IP should work in this state, but Microsoft Networking and QOS RSVP will not.  Microsoft says:

The TCP/IP NetBIOS Helper Service and the QOS RSVP Service depend on the AFD Networking Support Environment Service to function properly.
Thanks DrKlahn,

At last I could resolve the issue.

AFD driver could be installed after using the command "sfc /scannow" to repair any corrupted driver files.

Once AFD driver is installed under under the "non Plug & Play drivers", I could start the DHCP client in the services.

Thanks to you & the forum to help me resolving this issue. This is an excellent forum.

Best Regards,