When a network connection doesn't connect to the internet, Windows pops up a dialogue, asking whether you want to "Fix network problems".
What does it actually do when you click "yes"?
It checks for and fixes a number of specific known possible problems including problems with DHCP, DNS and adapter configuration. Microsoft has posted the complete list at When to Run the Fix My Network Wizard.