HOW TO - Check & Repair Windows Installation
Authored by Caleb Scharf October 6th, 2022 2398 views 0 likes KB956131
Ansys and other applications rely on Windows components to run properly. While not a common cause of Ansys errors, a corrupt or unhealthy Windows installation can cause problems with Ansys software such as applications not opening properly, windows crashing, blue screens, problems with windows updates not installing, application hangs or other hard to troubleshoot errors. The following procedure will check and resolve issues with a corrupt Windows Installation and/or Windows update mechanism.
Step #1 - Run Windows Updates
Windows updates contain OS fixes that can resolve issues you may be experiencing or if they fail, can tell us of a potentially deeper problem with OS system files.
- Windows Search > search and select Check for Updates > select Check for Updates
- Install all Windows Updates and restart if necessary.
- If you experience problems or errors while updating Windows, please see HOW TO - Troubleshoot Windows Update Errors
Step #2 - Run Windows Check Disk
Open a Administrator Command Prompt and run the following command (You can use this same command prompt windows to perform all the commands in this article):
- If this step detects errors run the following command to schedule a repair.
chkdsk c: /r
- Restart your computer and allow the repair process to occur.
- Ensure this was successful by Re-Running "chkdsk c:" as you did the steps above and insure there are no errors.
- Lastly, if errors were found in your initial check, we recommend running Crystol Disk Info, which can check the health of your hard drive and ensure a failing hard drive is not the root cause of the disk errors.
- Disk errors can can also be caused by improper shutdowns or software or other hardware errors as well.
Step #3 - Verify Windows Installation Health
- This process is comprised of several commands that are run sequentially.
DISM /Online /Cleanup-Image /ScanHealth
This ScanHealth performs an advanced scan to determine if there are any corruptions inside the local Windows 10 image. However, this option does not perform any repairs.
- Whether there are errors or not in the previous step, run the following command in an elevated command prompt. If there are problems with the system image, this command will automatically scan and repair common issues. If there are errors in this step, please contact your IT support team.
DISM /Online /Cleanup-Image /RestoreHealth
- Finally, run the following command to complete this process. If this process finds and fixes errors, that is a sign that windows corruption may have been the cause or contributing factor to the problem you were experiencing and your issue may be resolved. If no problems were fixed, the integrity of your Windows installation should be healthy and is not likely a contributing factor.