Repair a Windows installation

All commands should be run from an elevated command prompt.

dism /online /cleanup-image /scanhealth

dism /online /cleanup-image /checkhealth

dism /online /cleanup-image /restorehealth

Mount the Windows Server 2016 ISO as a drive (E: in this case)
Run dism /online /cleanup-image /restorehealth /source:WIM:E:\sources\install.wim:1 /limitaccess

Run sfc /scannow