... Recently, I got a new computer without HDD. So, I moved my new HDD into this new desktop and Windows can not start..
If the Windows worked fine before moving the HDD to the new PC, it is a driver problem (for the new PC).
Anyway, I share another way to repair the PC from the CMD.
Method 1. How to repair Windows 10 using SFC?
SFC (System File Checker) is a command-line utility that can scan for corruption in Windows system files and replace any corrupted or missing protected system files with a known good version. When you feel buggy with your computer or notice problems during boot, you can use SFC to diagnose problems and repair it.
To repair Windows 10 using SFC with detailed steps:
1. Open
"Start", search for the Command Prompt (cmd), select it and run as administrator.
2. Then type the command:
sfc /scannow and press
"Enter".
If SFC is unable to fix the problem, probably the utility cannot get the necessary files from the Windows image, which might have become broken. In this situation, you can use DISM to repair the Windows image.
Method 2. How to repair Windows 10 using DISM?
Windows 10 includes a command-line utility known as DISM (Deployment Image Servicing and Management). DISM command Windows 10 can be used to repair and prepare Windows images, including, Windows Setup, Windows Recovery Environment, and Windows PE. Also, DISM can be used to fix the recovery image within an installation of the operating system.
To repair Windows 10 using DISM commands:
- To check whether there is any corruption, Run command line as administrator, then type the following syntax and press "Enter".
DISM /Online /Cleanup-Image /CheckHealth
- To scan the Windows image for any corruption, type below command and hit "Enter".
DISM /Online /Cleanup-Image /ScanHealth
- To fix Windows image, type the following command and hit "Enter".
DISM /Online /Cleanup-Image /RestoreHealth /Source:repairSource\install.wim
Method 3. How to reset Windows 10 with command line?
To reset Windows 10 with "Reset this PC", follow the instructions below:
Type
systemreset -cleanpc in an elevated command prompt and press
"Enter". (If your computer cannot boot, you can boot into recovery mode and select "Troubleshoot", and then choose "Reset this PC".)
Method 4. How to run system restore with command prompt?
If the problem is too severe, you can try to restore your Windows 10 to the previous state as long as you have enabled system restore. But, it will not restore documents, music, emails, or personal files of any kind. If this is what you need, see below.
To run system restore in safe mode, follow the steps below:
1. Start your computer and press
"F8" repeatedly until the Windows advanced options menu appears.
2. Click
"Safe Mode with command prompt" and press
"Enter". If your computer can boot normally, type
"cmd" in the search box and click
"Command Prompt" to continue.
3. Sign in using an administrator account if needed. Once the command prompt is showing, enter
rstrui.exe at first in the Command Prompt Window and press
"Enter" to continue.
4. This command will bring you to the interface of System Restore. You can either use the recommended restore point or click
"Next" to choose an available restore point. Then, follow the instruction to complete system restore.