Open a command prompt with administrator privileges and execute the following command: This will list all the connected media i.e. Ethernet and Wifi along with its status. Look closely and see if you have an error which says:
Media State . . . . . Media disconnected
If that’s the case, we need to resolve issues with the internet, and the adapter on your PC. In case none of your adapters are in the list, you first need to troubleshoot the problem with the wireless adapter. Reset WINSOCK and IP Stack You can open the command prompt with admin privileges by using Windows key + X and select Command Prompt (Admin) from the context menu. In the command prompt, type the following commands: This will Reset Winsock entries This will reset IPv4 TCP/IP stack. This will reset the IPv6 TCP/IP stack. Once you have reset the TCP/IP stack and Windows Sockets API entries, reboot your machine for the changes to take effect.
Is your Network Adapter Disabled? If you have disabled the network adapters on your PC, you will need to re-enable it as well. Go to Settings > Network and Internet > Select Ethernet > Change adapter options > Right click on the adapter, and enable it. Check WiFi Properties This is rare, but if WiFi Sharing has caused issues, you need to go to Network Connections > Right click WiFi > Properties > Sharing tab > Select the first one and press OK. Update Drivers Go to Device Manager > Network Adapters, and click on the down arrow and it should reveal both the Ethernet adapter and your wifi adapter. Check if any of them have a red x on them? Right click on the one which has a red X and to choose Properties. Then click on the Driver tab to see which driver version it currently has. See if you can uninstall the driver, and reboot to let Windows find the driver for you. You can also download the driver from OEM website and update the driver. Let us know if anything here helped you.