Open the windows Command line as administrator. Press the Windows key, type cmd right-click the app and select "launch as Administrator". Alternatively, You can press the key-combination Win + R and type cmd and hold the Ctrl + Shift keys down while you press enter.
Enter chkdsk C: /f and accept with the Y. This letter might change depending on your system language. You want the option saying yes.
Attention: if your Disk that you want to repair is not the C: drive, then you need to change the Letter.
Source of Information: learn.microsoft.com
You have to start the Windows Terminal with Adminitrative rights to be able to use the commands below:
Do everything at once: dism /online /cleanup-image /scanhealth & dism /online /cleanup-image /checkhealth & dism /online /cleanup-image /restorehealth & sfc /scannow
This is how I once rescued important data from a Windows 11 Laptop which installed a failed Update and caused Windows to Bluescreen every time you would turn it on.
To repair the image (The quick and dirty way):
This one might not fix all corrupted System files! To do it properly, use the commands below:
sfc /scannow
Scan the image to check for corruption:
Dism /Online /Cleanup-Image /ScanHealth
Check the image to see whether any corruption has been detected:
Dism /Online /Cleanup-Image /CheckHealth
To repair the image:
Dism /Online /Cleanup-Image /RestoreHealth
There are multiple ways to enter the safe mode:
Using System Configuration (msconfig)
Win + R to open the Run dialog.msconfig and press Enter.Using Shift + Restart from the Start Menu
Using Windows Settings
Troubleshoot → Advanced options → Startup Settings → RestartUsing a Bootable USB or Recovery Drive
Troubleshoot → Advanced options → Startup Settings → RestartForcing Entry into Automatic Repair Mode:
Advanced options → Troubleshoot → Advanced options → Startup Settings → RestartGo to: Troubleshoot → Advanced options → Startup Settings → Restart
After another restart, press the corresponding number key for:
4 – Safe Mode
5 – Safe Mode with Networking
6 – Safe Mode with Command Prompt