Use the System File Checker tool to repair missing or corrupted system ...
If some Windows functions aren't working or Windows crashes, use the System File Checker to scan Windows and restore your files. Though the steps below might look complicated at first glance, just follow them in order, step-by-step, and we’ll try to get you back on track. Run the System File Checker tool (SFC.exe)
Create a system repair disc - Microsoft Support
Create a system repair disc. Windows 7. System recovery options can help you repair Windows if a serious error occurs. To use system recovery options, you'll need a Windows installation disc or access to the recovery options provided by your computer manufacturer.
Fix problems that block programs from being installed or removed
The Program Install and Uninstall troubleshooter helps you automatically repair issues when you're blocked from installing or removing programs. It also fixes corrupted registry keys. First, you'll need to download the troubleshooter. Download troubleshooter.
Create a recovery drive - Microsoft Support
For Windows 8.1, see Create a USB recovery drive. To download Windows 11 installation media, see Recovery options in Windows. Create a recovery drive so you can reinstall Windows 10 or Windows 11 in case you experience a major issue such as hardware failure.
Fix problems with your PC by using Windows Update
To fix problems using Windows Update: Select Start > Settings > System > Recovery > Fix problems using Windows Update. After you select the Reinstall now option, choose if you want to allow the PC to automatically restart 15 minutes after the installation completes.
Create installation media for Windows - Microsoft Support
You can use installation media (a USB flash drive or DVD) to install a new copy of Windows, perform a clean installation, or reinstall Windows. To create installation media, go to the software download website, where you'll find step-by-step instructions.
Reinstall Windows - Microsoft Support
If you're having problems with Windows 11 on your PC or you want a fresh copy of Windows 11 without the clutter of old files or apps, you can reinstall Windows 11 to try and fix your issues and return your PC to a cleaner state.
Create an ISO file for Windows 10 - Microsoft Support
Unlike in previous versions of Windows, you’ll need to use the media creation tool to create an ISO file to install Windows 10. Make sure you have a license to install Windows 10, and then follow these steps: On the Windows 10 download page, download the media creation tool by selecting Download now, then run the tool.
Using System File Checker in Windows - Microsoft Support
System File Checker is a utility in Windows that checks for problems with files on your computer. To run it, follow these steps: Make sure you've installed the latest updates for Windows, and then restart your machine. To find out more, read Update Windows.
Recovery options in Windows - Microsoft Support
Your PC isn't working well and you recently installed an app. Restore from a system restore point. You suspect your device has been infected. Use installation media to reinstall Windows 11. Select one of the recovery options below and follow the steps to try to get things working again.