Let's give this a try:
1. Run the Windows Update Troubleshooter: Select Start > Settings > Update & Security > Troubleshoot > Additional Troubleshoters > Network Adapter.
As winchester73 advised in another thread:
If you don't see the "Apply this fix" option after running the troubleshooter it doesn't mean that it didn't work. The tool runs an automated script to fix common problems. If something else is found, you'll see the "Apply this fix" option to apply the fix.
Restart the computer when you're done.
Even though you can connect to the Internet, if the above doesn't solve the problem, follow the steps above but this time select "Internet connections".
2. If still unable to update those programs or activate codes, try the following:
Run Deployment Image Servicing and Management (DISM):
- Click on the Start button and in the search box, type Command Prompt
- When you see Command Prompt on the list, right-click on it and select Run as administrator
- Enter the command below and press on Enter;
DISM /Online /Cleanup-Image /RestoreHealth
- Let the scan run until the end (100%). Depending on your system, it can take some time.
Next, run System File Checker (SFC):
- Click on the Start button and in the search box, type Command Prompt
- When you see Command Prompt on the list, right-click on it and select Run as administrator
- Enter the command below and press on Enter and wait for it to finish (~15 minutes).
sfc /scannow