Although Windows 10 is one of Microsoft's most trusted operating systems, over time it could malfunction, become infected with malware, or display a blue screen. Therefore, you may need to repair Windows 10 to fix these issues. Fortunately, there are different ways to repair windows 10.
In this article, I explain how to fix Windows 10 using Command Promptbecause it is a foolproof troubleshooting technique.
How to fix Windows 10 using SFC?
SFC (System File Checker) is a command line utility that scans all protected system files and replace damaged files with a full copy.
When you notice issues on Windows 10, you can use SFC to diagnose and fix the issues. Here is the procedure to follow:
- Open Start , look for thecommand prompt, select it and run as administrator. To do this, in the Windows search bar, enter "commands", right-click on it and click on Execute as administrator.
- Then type the command: sfc / scannow and press Starter.
- The verification will start, wait a bit. Finally, any errors will be corrected automatically in the event of a problem.
Be aware that the SFC tool is limited since it only scans system files, especially DLLs. If your problem is caused by a driver or an error in the registry, it will unfortunately not be able to help you.
In this case, you can use DISM to repair Windows 10 image.
How to fix Windows 10 using DISM?
DISM checks the integrity of Windows in order to fix corrupted images. The utility can be used to repair and prepare Windows images, including Windows recovery environment and Windows installation. Likewise, DISM can be used to repair the recovery image in an operating system installation and even to repair a virtual hard drive.
Here is the procedure to follow for repair Windows 10 using DISM commands:
- To check if there is corruption, run the command line as administrator, then type the following command and press "Enter."
DISM / Online / Cleanup Image / CheckHealth
- To scan the Windows image for any corruption, type the command below and press "Enter."
DISM / Online / Cleanup Image / ScanHealth
- To fix the Windows image, type the following command and press "Enter."
DISM / Online / Cleanup-Image / RestoreHealth /Source:repairSource\install.wim
Reset Windows 10 with the command line
The Reset this PC feature can restore Windows to its factory default state.
To reset windows 10, follow the instructions below:
type systemreset -cleanpc in a command prompt and press Enter. (If your computer cannot start, you can boot into recovery mode and select Troubleshoot, then choose Reset this PC.)
Two options are provided, Keep my files et Delete all. You can then select the option you need to reset your PC.
Start System Restore with Command Prompt
If the problem is too serious, you can try to restore your Windows 10 to the previous state as long as you have enabled System Restore.
System restore fromWindows 10 command prompt is a very useful way when your system crashes or cannot boot.
System Restore allows you to restore Windows to an earlier date where everything was working fine, to make your computer normal. It does not affect personal data or files, such as emails, documents or photos.
To run System Restore on Windows 10, follow the steps below:
- Open the command prompt. For that type cmd in the search box and launch Command Prompt as administrator.
- Once the command prompt is displayed, first enter rstrui.exe and press Starter. This command will take you to the System Restore interface.
- Choose a restore point. Select a date on which, or before which, you know your computer was functioning properly, and click Next.
- You will get a confirmation window. Click Finish to start the restore process. The computer restarts automatically.
Hello,
I arrived on your page, which I read completely, comments also, after having been unable to validate my OEM key, of my W10F installed on my motherboard.
To make it quick and simple, what I have just told you also means that:
– I created an installation key using “Mediacreationtool” provided by Microsoft
– I launched the procedure, with the key as boot
– I click here and there, I get to the window that asks me to enter my Windows 10 Family activation key (which I had previously retrieved). I type in the key and,…NOTHING….
It is not recognized… I spent the day trying to redo a “holy” PC, because I had installed a cracked version (I was young and crazy) of Windows 10 Pro. I want to give my computer to my father, but I want it to be as original, I'm stuck in my process...
If you would be so kind as to explain to me what I should do?
Thank you in advance.
Hello AD31,
At first, I recommend you to check if the OEM key you entered is correct and valid. The OEM key may not be valid if it was previously used on another machine or if it is hacked.
To verify the authenticity of your key, you can use the Volume Activation Management Tool. You just need to download this software from the following link: https://www.microsoft.com/fr-fr/download/details.aspx?id=11936
Then go to the “Product Keys” menu and enter your key and click on “Verify”. If your key is valid, Windows edition information will be displayed. On the other hand, if your key is not valid, an error message will be displayed on the screen.
Hello, I have a serious problem with my pc, there are these software (offices) and files if I try to open it displays the message “the endpoint mapper no longer has an available endpoint”
I try to reset but I can't either. Other level I am told that: »Windows cannot access the device,path or file specified. You may not have the appropriate permissions to access the item. »
I ask for help
thank you in advance
Hello Dabone,
These error messages may indicate a corrupted file or damaged disk problem. Here are some steps you can follow to fix this issue:
If that doesn't work, you can try resetting your computer using Windows advanced reset options.
Hello, it's been 2 hours that I try the different solutions to reset my PC but nothing works. Automatic restore does not work, neither does uninstalling updates. Also failed by system restore (because no restore point was created) so I can only "cancel". I also went through the command prompt, but finally the file: *.* .. is not found.. Could you please help me, I really don't know what to do anymore? I thank you in advance.
Hello WaM,
It looks like you are having trouble resetting your PC. An alternative solution to reset your computer is to create a Windows recovery USB drive. You can follow these steps to create a recovery USB drive:
Once the recovery USB key is created, you can boot your computer to this key to reset your computer. Be sure to back up all important data before proceeding.
Thanks for the solution
Super cool, but the restoration date is not displayed
Same, no restoration date, so not cool
Guys if you haven't made a backup beforehand, restoring is useless
Hello Markus,
It is important to note that if you have not made a previous backup, the Windows restore function will not be able to be used.
Restore is a tool to restore files from a previously made backup. It is therefore important to regularly check that you are making backups regularly so that you can use the restore function when needed.