Run in an elevated Command Prompt or PowerShell:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
sfc /scannow
DISM repairs the component store (the source Windows uses to repair itself; it may download files from Windows Update). SFC then verifies protected system files and replaces damaged ones from that store. Reboot afterwards and run sfc /scannow again until it reports no integrity violations. Details of what SFC could not fix are in %windir%\Logs\CBS\CBS.log. If both fail, consider an in-place repair install (run setup from a Windows ISO and keep apps and files).