Windows repair
Step 1: Type cmd in the search box on the taskbar, and then right-click the Command Prompt app and select Run as administrator.
SFC /Scannow DISM /Online /Cleanup-Image /CheckHealth DISM /Online /Cleanup-Image /ScanHealth DISM /Online /Cleanup-Image /restoreHealth SFC /Scannow shutdown -r
Step 1: Type cmd in the search box on the taskbar, and then right-click the Command Prompt app and select Run as administrator.
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver shgutdown -r
Step 2
net start wuauserv net start cryptSvc net start bits net start msiserver shutdown -r
if on update or install function has error do this:
Step 1: Enter the following commands and press [Enter] after each command:
net stop wuauserv net stop cryptSvc net stop bits net stop msiserver ren C:\\Windows\\SoftwareDistribution SoftwareDistribution.old ren C:\\Windows\\System32\\catroot2 Catroot2.old shutdown -r
Step 2: You have disabled the update components in Windows. Now you need to restart them. Use the following commands and confirm each command with [Enter]:
net start wuauserv net start cryptSvc net start bits net start msiserver shutdown -r