Hardware defects and issues aren't the only things that can cause a computer running on the Windows Operating System to fail to start up properly. Software issues – everything from corrupt Windows startup files to invalid boot files – can also cause a computer to fail at startup. This is where Startup Repair comes in. Startup Repair is a tool developed by Microsoft designed to detect any issues with the files and software in general that a computer needs to have in order to correctly boot into Windows and fix them. Startup Repair is available for all versions of the Windows Operating System starting from Windows XP.

Read More at: https://appuals.com/how-to-perform-startup-repair-in-windows-88-1-and-10/

source
how to repair windows 7