Check whether default Windows Update data locations have changed.Contact a network or system administrator, or ISP, to fix Internet connectivity issues.Fix Windows Firefox blocking connections to Windows Update on the PC.
The troubleshooter displays all repair options after a quick scan: This gives you full control over the troubleshooting process. I suggest you click on advanced on the first screen that opens and disable the automatic repair option. It checks Windows Update and the Background Intelligent Transfer Service (Bits), and also runs Windows Network diagnostics. The Windows Update troubleshooter for Windows 10 is an improved version of the troubleshooter for previous versions of Windows.
The second command checks core Windows files for corruption, and replaces them if possible with the correct version. DISM.exe is the Deployment Imaging and Servicing Management tool which you may use to correct Component Store corruption.