Hello,
I am experiencing persistent system corruption issues on a Windows Server 2019 (Version 1809, Build 17763.6775) machine, and neither DISM nor SFC can fully repair the system.
The initial symptoms were issues with Windows update - all updates failing to download or apply.
Running SFC /scannow finds corruption but states that it "could not repair all files".
Running DISM /Online /Cleanup-Image /RestoreHealth fails with Error 21: The device is not ready. (This server runs RAID1 and I have confirmed the RAID array is healthy in the BIOS. I also tried SFC and DISM in a carbon copy of this server on a virtual machine, and got the same issues - so I think hardware can be ruled out)
The server is still bootable, but I suspect that system corruption is preventing repairs.
Troubleshooting & What I’ve Tried:
SFC Logs:
The SFC scan repeatedly reports corruption and failure to repair Computer Management.lnk due to a hash mismatch. (I have tried replacing the shortcut file, but it is also corrupted in the component store). I also tried taking ownership of the file in system32 and syswow63, deleting the file, replacing the file with one from another Server2019 and then setting the ownership back to TrustedInstaller.
Final message in SFC logs: "Verify and Repair Transaction completed. All files and registry keys listed in this transaction have been successfully repaired." — yet the issue persists.
I attempted DISM repairs from both Windows and WinRE, but it still fails.
I have also tried pointing DISM to install.wim in the Microsoft Server 2019 ISO (mounted) that I downloaded from the Microsoft website (in both Windows and WinRe environments it still fails - saying "The source files could not be found."
I confirmed that the install.wim exists and used /Get-WimInfo to verify the correct index.
The issue persists even after manually specifying an alternate ScratchDir.
I tried installing some pending updates manually, that worked but did not solve the issue.
I have refreshed Catroot2 and SoftwareDistribution folders by renaming them to .old
I queried TrustedInstaller and found that it was not running.
Manually started it, but it does not appear in Services.msc after starting.
What is even weirder and makes me think there is an issue with the ISO I downloaded (I have downloaded it multiple times since incase it was a download error) is that when I try to upgrade in place to solve the issue, I run setup.exe and get the error message "Windows cannot find the Microsoft Software License Terms. Make sure the installation sources are valid and restart the installation.
I am at a loss for what to try next, other than to completely wipe the system and rebuild the server from scratch - I would appreciate any support or suggestions.