How to repair Windows 10 (and 11) in 4 steps
Sometimes a Windows 10 system starts misbehaving to the point where repair is needed. This often takes the form of worsening performance or stability, and can originate from damage to, loss of, or corruption of Windows system files typically found in the
C:Windows folder hierarchy. When that happens, users would be well advised to break out the following routine to help them set things back to rights.
Step 3: In-place upgrade to current Windows 10 version
Source: Operating Systems