In this scenario, after resuming from sleep, Windows would show that Wi-Fi connections are available, but it doesn’t automatically reconnect, or it doesn’t stay connected during sleep. This will affect your user experience if you rely upon background processes running on your PC, like downloading using Windows Store or Download Manager, etc. So if you’re getting frustrated with this problem, you can try these steps referenced from  this wiki article:

Internet or Wi-Fi gets disconnected or does not automatically reconnect

There are two ways to fix this:

Using Device ManagerPowerShell Script

You will need admin permission to complete these steps

1] Using Device Manager

  1. Press Windows Key + R and type devmgmt.msc in the Run dialog box to open Device Manager.

  2. In the Device Manager window, expand Network Adapters and look for your Wi-Fi driver, do a right-click on it, select Properties.

  3. In the property sheet, switch to the Power Management tab and uncheck the option. Allow the computer to turn off this device to save power. Click OK.

You may now close Device Manager and restart the machine to get your issue fixed. Read: Fix Wi-Fi problems on Windows 11/10.

2] Using Windows PowerShell

  1. Go to Desktop, right-click and select New -> Shortcut. In the Create Shortcut window, paste this command: Substitute your system root drive with C: and wireless adapter name, which you can get from the Device Manager window shown previously in this article. In our case, the wireless network adapter was Intel(R) Pro/Wireless 3945ABG Network Connection, so the command becomes:

Click Next. 2. Moving on, name this shortcut like Wi-Fi Reset and click Finish.

  1. Finally, right-click the shortcut so created and select Properties. Click Advanced, and in the Advanced Properties window, check option Run as administrator. Click OK, then Apply, followed by OK.

You can pin this shortcut to Start Screen and double click as soon as you come around the issue. After double-clicking, let the system execute the command and reboot the machine. It should fix the problem.

Why does my computer keep disconnecting itself from the Wi-Fi?

There can be two reasons. The first is where the router is at fault. In this case, you need to create a new SSID and try connecting to it again from your Windows PC. The second is where the WIFI adaptor is at fault. In this case, you can choose to uninstall the adaptor, let Windows find it again using the Scan for Hardware change menu, and let it install the driver again.  If at all, you can choose to install the driver manually by downloading it from the OEM website.

How do I keep my Internet connection alive all the time?

If you have a desktop or laptop, make sure to disable the sleep mode. It is the primary reason why a PC keeps losing the internet connection. In the case of the laptop, you can disable the sleep action on the lid closed.

Can Wake-on-LAN work over Wi-Fi?

It works, but only if the Wireless device is sending the Wakeup call. So if one laptop is trying to wake up, it will work, but if a standard PC tries to wake it up, it will not work even if it’s on the same network. I hope this helps!

Internet or WiFi gets disconnected after Sleep in Windows 11 10 - 64