none
Ancillary Function Driver for winsock failed to start

    Question

  • This may be a moot point if i can't get back into safe mode to fix the problem :(.

    Win 7 is hanging just after the login screen. I was able to boot up into safe mode and check the event log and found a common theme...
    Ancilliary Function Driver for Winsock service which failed to start because of the following error:  A device attached to the system is not functioning
    A lot of my networking was failing for the above reason. 

    AFAIK this is what is causing the system to hand. I found this KB for Vista / Server 2008 but that doesn't help because the hotfix cannot only be installed in safe mode... I would need to run it if the machine was booting OK :(

    Any suggestions?

    I have disabled all networking devices from device manager - no help

    Win 7 Build: 7100
    Metal: Sony VAIO FW27GU

    Cheers
    Q
    Wednesday, September 09, 2009 5:28 AM

Answers

  • Hi,

     

    First, I woudl like to confirm when the issue began to occur. Have any new programs or hardware installed on the computer. Please temporarily unplug all external hardware to check the result. If the issue persists, let's use the following methods to troubleshoot the issue.

     

    Step 1: Perform a System Restore in Safe Mode

    Step 2: Perform a Clean Boot in Safe Mode


    Step 3: Show hidden device and uninstall all the hidden network devices

    ====================

    1. Click "Start", input "sysdm.cpl" (without quotation marks) in the Start Search bar and press Enter. Click Continue if necessary.

    2. Click the "Advanced" tab, and then click "Environment Variables" button.

    3. Click "New" under the "System Variables"

    4. Enter "DEVMGR_SHOW_NONPRESENT_DEVICES" (without quotations) in the Variable Name, and set Variable Value to 1.

    5. Click OK to apply the change.

     

    6. Click "Start", input "devmgmt.msc" (without quotation marks) in the Start Search bar and press Enter.

    7. In Device Manager, choose View from the tab and "Click Show Hidden Devices".

    8. Please browse the Device Manager to check if there are network devices (hidden device displays as grey), right click on it and choose uninstall if any.

    9. Please also uninstall all devices listed in the "Other devices" and "Non-Plug and Play Drivers" category.

    10. Restart your computer.

     

    Step 4: Manually Start the service in Safe Mode

    =========================

    1. Click Start menu and type CMD in the open box, and then press enter.

    2. Type the following command to start the Ancillary Function Driver for Winsock service.

     

    Net Start AFD

     

    3. Then, please restart the computer for a test again.

    4. If the computer cannot boot up normally in Normal Mode, let's replace the afd.sys file from a normal computer and test the issue again.

     

    The file location is enclosed below:

     

    C:\Windows\System32\drivers\afd.sys

     

     

    What's the result?

     

    Thanks,

    Novak

    • Marked as answer by Novak Wu Wednesday, September 16, 2009 6:17 AM
    Tuesday, September 15, 2009 2:03 AM

All replies

  • Hi Quinten.Miller,

    Have you checked in the device manager the non plug&play devices?
    try t enabled it from there and set it to on demand(not sure dont remember)!
    or i missed the point?
    Regards,
    RR
    • Marked as answer by Novak Wu Tuesday, September 15, 2009 2:02 AM
    • Unmarked as answer by Novak Wu Tuesday, September 15, 2009 2:02 AM
    Wednesday, September 09, 2009 2:37 PM
  • Hi,

     

    First, I woudl like to confirm when the issue began to occur. Have any new programs or hardware installed on the computer. Please temporarily unplug all external hardware to check the result. If the issue persists, let's use the following methods to troubleshoot the issue.

     

    Step 1: Perform a System Restore in Safe Mode

    Step 2: Perform a Clean Boot in Safe Mode


    Step 3: Show hidden device and uninstall all the hidden network devices

    ====================

    1. Click "Start", input "sysdm.cpl" (without quotation marks) in the Start Search bar and press Enter. Click Continue if necessary.

    2. Click the "Advanced" tab, and then click "Environment Variables" button.

    3. Click "New" under the "System Variables"

    4. Enter "DEVMGR_SHOW_NONPRESENT_DEVICES" (without quotations) in the Variable Name, and set Variable Value to 1.

    5. Click OK to apply the change.

     

    6. Click "Start", input "devmgmt.msc" (without quotation marks) in the Start Search bar and press Enter.

    7. In Device Manager, choose View from the tab and "Click Show Hidden Devices".

    8. Please browse the Device Manager to check if there are network devices (hidden device displays as grey), right click on it and choose uninstall if any.

    9. Please also uninstall all devices listed in the "Other devices" and "Non-Plug and Play Drivers" category.

    10. Restart your computer.

     

    Step 4: Manually Start the service in Safe Mode

    =========================

    1. Click Start menu and type CMD in the open box, and then press enter.

    2. Type the following command to start the Ancillary Function Driver for Winsock service.

     

    Net Start AFD

     

    3. Then, please restart the computer for a test again.

    4. If the computer cannot boot up normally in Normal Mode, let's replace the afd.sys file from a normal computer and test the issue again.

     

    The file location is enclosed below:

     

    C:\Windows\System32\drivers\afd.sys

     

     

    What's the result?

     

    Thanks,

    Novak

    • Marked as answer by Novak Wu Wednesday, September 16, 2009 6:17 AM
    Tuesday, September 15, 2009 2:03 AM