Recently I've come across some bug with one of my Windows Server installations, which was behaving relatively odd. Large surprise, right? Later doing some excavation effectually, I've come up with a complete prepare of commands that checks the system wellness and repairs any abuse that may have occurred with system files.

Feel free to run these in the lodge mentioned below if your system is having stability issues or other strange and frustrating bug.

SFC /scannow

This classic command also known every bit System File Checker tool checks for abuse in Windows organisation files and restores corrupted files. This is the first tool that we always run to check for problems in system integrity and try to motorcar-resolve them.

DISM /Online /Cleanup-Image /ScanHealth

This tool is used in case SFC does not detect whatsoever corruption or was not very helpful at fixing the issue. With DISM, we can service an offline windows image (WIM) or VHD file, or an online Windows Prototype.

The "/ScanHealth" switch scans the online image for corruption and detects if in that location are whatever issues.

DISM /Online /Cleanup-Image /CheckHealth

After running the first command we demand to run the same command with the "/CheckHealth" to meet if whatsoever corruption has been detected. Subsequently the command finishes running it will report if the prototype is salubrious, repairable or unrepairable.

DISM /Online /Cleanup-Prototype /RestoreHealth

In case we found corruption on the image, we volition run the aforementioned command with the "/RestoreHealth" switch that will auto-correct any corruption. This may take about twenty minutes to complete.

DISM /online /Cleanup-Image /SPSuperseded

This optional switch, "/SPSuperseded", will remove whatever superseded updates and service packs from the Winsxs folder, to free up space on systems with low disk space on the OS drives.

Hopefully, yous system performance and stability will be improved afterward running the above-mentioned commands. Enjoy!