Command Prompt is a blessing when your window gets corrupted. You can save your computer with some cmd syntaxes. So moving on there are four methods to get back your windows with command prompt.
Table of Contents
Repair Windows 10 using SFC
The full form of SFC is System File Checker and this command scan window’s important files and find what is corrupted or missing. If you run into any window related problem, running this command should be your first response.
There is one condition you should run the command prompt as administrator. You can run command prompt as an administrator by going to start and then right-click. There will be an option of a run as an administrator. Please click that.
Syntax for sfc command is
This scan will take some time depending on your files sizes but when it ends cmd will give further instructions. This command will also compile two log files where it will be mentioned what files are corrupted. Most probably log file will be located at
Hopefully, this step will repair Windows 10 using sfc command but if this is not the case then you can move to the second step.
Repair Windows 10 using DISM
There is command line utility, in command prompt, DISM know as Deployment Image Servicing and Management. This command can be your friend for repairing windows using command prompt. Windows 10 DISM command can be used to do multiple function like Windows images, including, Windows Setup, Windows Recovery Environment, and Windows PE. To repair windows 10 using DISM, you should run CMD as an administrator.
For checking any corrupted file on your window type the following syntax in order. These syntaxes will check and scan the health of your window and will point out any anomalies.
dism/online /cleanup-Image /checkhealth
dism/online /cleanup-image /scanhealth
After running these two commands for checking corrupted files type out following syntax in command prompt as an administrator mode.
After running all of these command windows will be recovered and should be working without any problem. And you can find the log file if dism command at
Restore Windows 10
If the problem is too severe you can always restore your windows to its previous stable version. For restoring you have to just follow some simple steps.
- Firstly you have to access the windows advance startup option and there are many methods but here is the easiest method. Go to the command prompt as administrator and then type this command
shutdown.exe /r /o
This command will restart your computer in advance startup option. One thing you should know there will be some delay but it is normal.
- Secondly after restarting you will find some options and you should click on Troubleshoot
- After clicking on Troubleshoot you will be taken to Advance option menu where you should click on System restore and windows will start its process.
Reset Windows 10
It happens very rarely the window is not recovering what so ever and as a last resort you have to reset the window. Now you can reset the computer very easily through the command prompt. For resetting the window you have to type this syntax in command prompt. For this syntax, you should run the command prompt as an administrator.
Hopefully, your problem will be solved by now. For more information, you should visit Microsoft thread about this problem. If you are interested in learning more about command prompt or basic commands click here