AFD Missing from Device Manager - No network connectivity

We have a customer with a virus.  Once removed, we noticed that the network connection is always "obtaining an ip address".  Found that DHCP cannot start due to AFD not starting.  We cannot start AFD due to no device being present.  There is no AFD in device manager under non plug and play drivers.  In HKLM, there are the proper entries under the currentcontrolset\services key.    The afd.sys file is there and has even been replaced with a good one.  How can AFD be added back to Device Manager.
Answer
Answer
If the AFD Service is missing from Device Manager, View, Show hidden devices you can add it back.

Before making any changes to your registry, back up the registry with this popular free tool:

http://www.snapfiles.com/get/erunt.html

Open notepad to create a new text file:

Click Start, Run and in the box enter:

notepad

Click OK to open a new notepad file.

Copy and paste the following lines of bold text into the new notepad file.


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




Save the new text file with a .reg extension to your desktop or someplace you can remember with a name you can remember, something like:

fixafd.reg

After saving the file, close notepad.

Locate the fixafd.reg file on your desktop and double click it.

Alternatively, you can right click the fixafd.reg file, choose Open With... and select the Registry Editor.

Respond in the affirmative to the question... Are you sure you want to add the information to the registry?

You should then see a message that the information was successfully entered into the registry.

Reboot your system and test.

You can remove the fixafd.reg file when you are done.

If the Registry Editor has also been disabled, we will have to fix that first (not a problem).

Did this solve your problem?

Sorry this didn't help.

Great! Thanks for marking this as the answer.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this response?

Thanks for your feedback.

 
 

Question Info


Last updated July 13, 2020 Views 13,619 Applies to: