How to repair a Windows install without reimaging the PC


Issue

Sometimes a Windows workstation will exhibit issues with Flex due to corruption in the OS. This article will walk you through how to fix them.

Environment

FLEX

Resolution

To fix Windows you will first need to make sure that the OS image is in a good state and then use the image to repair windows.

1. Run the Command Prompt as an administrator.

2. To  restore the health of your image run the following commands in order:
    DISM /Online /Cleanup-Image /ScanHealth
    DISM /Online /Cleanup-Image /CheckHealth
    DISM /Online /Cleanup-Image /RestoreHealth

3. From the Administrator Command Prompt run the command SFC /scannow
    If you run into errors it may be worth running SFC /scannow until no integrity violations are found.