Losing Wi-Fi AFTER Sleep

Page 2 of 4 FirstFirst 1234 LastLast

  1. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #11

    Hello @MaloK,

    MaloK said:
    Did you try: just to restart "WLAN AutoConfig" Service see how it goes.

    Powershell:
    Code:
    $WLANProc = Get-CimInstance Win32_Process | Where-Object {$_.CommandLine -eq "c:\windows\system32\svchost.exe -k LocalSystemNetworkRestricted -p"}
    Stop-Process -Id $WLANProc.ProcessId -Force
    Start-Service WlanSvc

    Actually, I did look at the WLAN AutoConfig in Services this morning, and it was set to Automatic & Running.

    That is a Good Idea to try the Restart WLAN AutoConfig, I will definitely try that the next time the problem occurs, THANKS. What do I need to add to that code to get it to automatically run as Elevated?

    I was thinking of using > net stop "WLAN AutoConfig" && net start "WLAN AutoConfig"

    Last edited by Paul Black; 08 Sep 2021 at 13:23.
      My Computer


  2. Posts : 2,800
    Windows 7 Pro
       #12

    @Paul Black,

    From the information your provided with your diagnostic. You may have a buggy Wifi Driver. If you can try to swap to another version or roll back the driver to see what it does, also check Original Manufacturer.

    You can create a task that will run the script as admin by catching event with code 1 from Power-Troubleshooter source in EV. And in your script you could also ping your gateway and if it doesn't reply then Restart WLAN AutoConfig only if needed.
      My Computers


  3. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #13

    Hello @MaloK,

    MaloK said:
    From the information your provided with your diagnostic. You may have a buggy Wi-Fi Driver. If you can try to swap to another version or roll back the driver to see what it does, also check Original Manufacturer.

    The trouble is that the Laptop is 10 years old. I had already checked the Manufacturers Website and that is the latest Driver according to them. I also Uninstalled it from Device Manager and checked to see if WUs had a newer one, but in BOTH cases, the same Driver was Reinstalled.

    MaloK said:
    You can create a task that will run the script as admin by catching event with code 1 from Power-Troubleshooter source in EV. And in your script you could also ping your gateway and if it doesn't reply then Restart WLAN AutoConfig only if needed.

    I have setup a quick Batch Script ready to run the next time I have the problem . . .

    Code:
    
    @echo off
    ping 192.168.1.254
    echo.
    net stop "WLAN AutoConfig" && net start "WLAN AutoConfig"
    ping 192.168.1.254
    echo. & pause

    As I normally Sign-Out, I might put it in the folder . . .

    > %appdata%\Microsoft\Windows\Start Menu\Programs\Startup

    THANKS again.

      My Computer


  4. Posts : 1,743
    Windows 10 Pro (+ Windows 10 Home VMs for testing)
       #14

    Paul Black said:
    Unfortunately, the latest version that is available is v1809.
    I noticed there are WDKs for 1903 and 2004 yet none listed for 1909 (which apparently you use).

    I suppose you could try scripting turning Airplane Mode on then off again to see if it will force a re-scan of the Wi-Fi card (I think it uses WUDFHost.exe). Brink did this using compiled AutoIt scripts for Windows 8.

    Alternatively, have a look at powercfg.exe and, in particular, check the sub-group GUID for Wireless Adapter Settings:
    Losing Wi-Fi AFTER Sleep-powercfg_wifi_guid.png

    With this in mind, and going back to your first post, the pivot point seems to be how consistently your Wi-Fi adapter is successfully enumerated after a sleep state. AFAIK only something like traces using the WHLK or WPA can determine this. Microsoft's advice is:

    If the latency of any network device seems long, contact the Wi-Fi or mobile broadband device vendor for the system.(Modern Standby resume performance)
    I suggested the use of devcon.exe as it can force a re-query of hardware, i.e. it's possible to script the equivalent of 'Scan for hardware changes' in Device Manager's GUI... so at a completely different (ACPI and/or PnP) level to network/Wi-Fi settings after hardware is initialised and identified.

    I've found several posts where devcon.exe was used or suggested for similar hardware resume issues.

    EDIT: Ignore my powercfg.exe suggestion. On re-reading, you've already tried this.
      My Computer


  5. Posts : 2,800
    Windows 7 Pro
       #15

    Try with this:

    Code:
    @echo off
    set ip=192.168.1.254
    ping -n 1 %ip% | find "TTL"
    if not errorlevel 1 goto :EOF
    net stop "WLAN AutoConfig" && net start "WLAN AutoConfig"
    It will only restart the service if needed
      My Computers


  6. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #16

    Thanks for the reply @RickC,

    RickC said:
    I noticed there are WDKs for 1903 and 2004 yet none listed for 1909 (which apparently you use).

    Correct.

    RickC said:
    I suppose you could try scripting turning Airplane Mode on then off again to see if it will force a re-scan of the Wi-Fi card (I think it uses WUDFHost.exe). Brink did this using compiled AutoIt scripts for Windows 8.

    I have downloaded them ready to try when the time comes.

    RickC said:
    I suggested the use of devcon.exe as it can force a re-query of hardware, i.e. it's possible to script the equivalent of 'Scan for hardware changes' in Device Manager's GUI... so at a completely different (ACPI and/or PnP) level to network/Wi-Fi settings after hardware is initialised and identified.

    I just found the > DevCon Rescan option, but WITHOUT devcon.exe available for v1909, I am a bit stuck! It is a shame really because I think the Command is just devcon rescan > Example 37: Scan the Computer for New Devices.

    Thinking about this aspect of it, the Wi-Fi disappears from Network Connections, and Network Adapters in Device Manager. I have ALREADY Manually tried Scan for Hardware Changes in Device Manager.

    I have also found > PnPUtil



    I will have a look and see if I can Batch Script an alternative ready to try when the time comes.

    I did have a look at and download NetSetMan which has a Scan option.

    THANKS again.

    Last edited by Paul Black; 08 Sep 2021 at 12:57.
      My Computer


  7. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #17

    MaloK said:
    Try with this:

    Code:
    @echo off
    set ip=192.168.1.254
    ping -n 1 %ip% | find "TTL"
    if not errorlevel 1 goto :EOF
    net stop "WLAN AutoConfig" && net start "WLAN AutoConfig"

    It will only restart the service if needed
    THANKS.
      My Computer


  8. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #18

    There MUST be an EASY way to achieve this!

    Basically, while the Wi-Fi is working, I want to Export EVERYTHING [ Settings etc ] associated with it. Then when the problem arises, I just want to be able to Import it back, with a possible Refresh, NOT Restart, and it WORKS.

    The main reason of this thread is to find a way to get the Wi-Fi back up and running WITHOUT having to perform a Restart.
      My Computer


  9. Posts : 2,800
    Windows 7 Pro
       #19

    So I assume restarting WLAN Autoconfig alone did not work.
      My Computers


  10. Posts : 18,044
    Win 10 Pro 64-bit v1909 - Build 18363 Custom ISO Install
    Thread Starter
       #20

    Hello @MaloK,

    MaloK said:
    So I assume restarting WLAN Autoconfig alone did not work?

    Unfortunately, I can NOT test it until the problem happens again.

    I have also collated several other tests as well that I will also try. I will then post what those test were and the subsequent results.

      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 16:30.
Find Us




Windows 10 Forums