I did a fresh install of Windows and right off the bat, Windows update would hang when I had it search for updates. It would show searching for updates and then hang on that screen. I let it go for about an hour. I was able to follow steps that I read on this forum to get it working but my computer has only a couple of days left on the warranty and so I would like to figure out if there is a hardware problem.
Here is what happened:
Windows Update would hang on the screen "checking for updates."
Downloaded Windows update client, which would also hang.
Used Reset Windows Update agent tool, which basically clears out the Windows update cache. Then,
Dism /Online /Cleanup-Image /RestoreHealth. Ran Windows Update tool again, it installed an update, which I think is an update to the Windows Update software.
Computer was now able to find updates. The status bar said that the computer was almost done installing updates. But, at the end it gave a message saying that there was a problem installing updates.
Followed steps on Microsoft webpage here: https://support.microsoft.com/en-us/help/10164/fix-windows-update-errors. Network troubleshooter did not find anything. Windows Update troubleshooter had these results:
Service registration missing or corrupt - Fixed Windows Update error 0x80070003(2019-01-19-T-12_31_03A) - Fixed Problems installing recent updates - Fixed
Computer says that it needs to restart in order to apply updates. I restart.
When I go to the check for updates screen again, it still says "last checked for updates: never & last installed updates: never." But, available updates seems to reflect that some updates were installed.