Whenever you try to install Windows 10 os and it gives error like this then follow the below simple steps to resolve it,
“The Computer Restarted unexpectedly or encountered an unexpected error”.
If this error windows come then press The SHIFT key and F10 Key at Same time and it open command promot.as below,Then Type Regedit and press Enter,
After Press Enter it Open Registry Editor then it go to Below Path,
Now You see the “Setup.exe” Double click on it, Now change the value form 1 to 3 and click on ok button and then exit the all, and then press ok to error message and now continue on the Windows setup process as normal.