This can be caused by multiple issues, but the following steps can be used to troubleshoot:
First, try restarting the computer
Open an elevated command prompt
Run the following commands:
ipconfig /all
If the computer has a 169.x.x.x IPv4 address, then it cannot connect to the DHCP server
ping 127.0.0.1
If this command is successful, then the TCP/IP stack is functional
ping <assigned IP address>
If this command is successful, then the network adapter is functional
ping <default gateway acquired from ipconfig /all>
If this command is successful, then the connection to the router is functional
ping 8.8.8.8
If this command is successful, then the connection to the internet is successful
ipconfig /release
ipconfig/renew
The previous commands will release whatever IP address is assigned and request a new one from the DHCP server
ping www.google.com
If this command is successful, then the DNS service is functional
ipconfig /flushdns
This command will remove any cached DNS configuration and request an update
This happens when the the localservice and networkservice have been removed from the administrator group and the user account has lost access to the Diagnostic Policy Service. Perform the following steps to fix the issue:
Open an elevated command prompt
Run the following commands:
net localgroup administrators localservice /add
net localgroup administrators networkservice /add