Where exactly in Windows 10 are you getting this error message?
Open Start > Settings > Update & security > Troubleshoot
Scroll down
Click Network adapters
Click Run the Troubleshooter
When complete, restart to see if the problem is resolved.
If not, press Windows key + X
Click Device Manager
Expand Network adapters
Right click your adapter
Click Uninstall
Exit Device Manager, restart. Windows 10 should detect the network adapter then reinstall it. Check if you can connect and browse.
also try:
Open Start > Settings > Network & Internet > Status
Scroll to the bottom then click Network reset.
Disable the Windows Firewall then try connecting.