Repair a Windows Server 2016 installation

This is more for my benefit in the future, but hopefully it can help someone else too.

We recently had problems with a development server not installing Windows Updates. The fix was to repair the installation using the Deployment Image Servicing and Management (DISM) tool.

All commands should be run from an elevated command prompt.

  1. Run dism /online /cleanup-image /scanhealth
  2. Run dism /online /cleanup-image /checkhealth
  3. Run dism /online /cleanup-image /restorehealth
  4. Mount the Windows Server 2016 ISO as a drive (E: in this case)
  5. Run dism /online /cleanup-image /restorehealth
    /source:WIM:E:\sources\install.wim:1 /limitaccess
  6. Run sfc /scannow
  7. Run Windows Update

Good luck!

Photo by Matt Artz on Unsplash

3 thoughts on “Repair a Windows Server 2016 installation

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: