This also can be done on Server 2019 or Hyper-v 2019
- Online repair from command prompt:
DISM /Online /Cleanup-Image /CheckHealth
- Offline repair from command prompt with USB stick of the SAME image of your windows 10:
DISM /online /Cleanup-Image /RestoreHealth /Source:E:\sources\install.wim:1 /LimitAccess
- Check health from command prompt:
DISM /online /Cleanup-Image /CheckHealth
- Scan health from command prompt:
DISM /online /Cleanup-Image /ScanHealth
- Command to run a system file check:
sfc /scannow
Reference:
https://www.windowscentral.com/how-use-dism-command-line-utility-repair-windows-10-image
https://www.minitool.com/news/dism-offline-repair-windows-10.html