Tech Support Guy banner
Status
Not open for further replies.

Your PC ran into a problem and needs to restart

9.2K views 90 replies 3 participants last post by  zebanovich  
#1 ·
Before leaving Florida for 6 weeks, I unplugged the power to my wife's Lenova All-in one desktop computer. Came home today, plugged in the power and got the message Your PC ran into a problem and needs to restart. I looked at other postings for this problem but did not understand what to do. Attached are some screen shots I took. I did try to do some stuff posted under windows.com/stopcode but not sure what to do.
 

Attachments

#4 ·
OK, here is how:

1. Insert USB stick into this trouble PC
2. Your first screenshot shows "Advanced" button, which when clicked should let you choose an option to start command prompt.
If not, there must be some other way to get it.

3. Once you have command prompt, type following 3 commands to learn the "letters" of your USB and System drive:
Code:
DISKPART
lis vol
exit
Identify following letters (Ltr column):
1. the letter of system drive (one on which Windows is installed)
2. the letter of your USB stick.

Now to copy log file from "Windows" drive to USB use following command but make sure to replace the letters according to your output, In this example C:\ is Windows partition and F:\ is USB partition.

Code:
copy C:\WINDOWS\System32\LogFiles\Srt\SrtTrail.txt F:\
When done, detach your USB and attach it to working computer, and attach SrtTrail.txt which is now on your USB drive here into forums.
 
Save
#6 ·
I unplugged the power to my wife's Lenova All-in one desktop computer. Came home today, plugged in the power and got the message Your PC ran into a problem
What happened is that you unplugged your PC while there was Windows update in progress, since the PC was shut down by force the update was interrupted in the middle of it's job and resulted in corrupted registry.

The error 0x3f1 from the log means:
The configuration registry database is corrupt
The issue now is that Windows can't boot because it tries to finish the update which is now broken.

If you still have command prompt open OK, if not open it and make sure to learn system drive letter as before (the one where Windows is installed) then type following command into console, (replace C:\ with system drive if needed in the example below)

Code:
dism /image:C:\ /Cleanup-Image /RestoreHealth
This might take some time, when done run this:

Code:
sfc /scannow
This might take some time too, once you're done reboot system, hopefully it will start.
If not, let me know.
 
Save
#8 ·
Yes, wrong because there must be space between C:\ and /Cleanup-Image, see above command again,
basically:
/image:C:\ /Cleanup-Image
instead of
/image:C:\/Cleanup-Image

Let me know what was the output of this command in the end.
 
Save
#10 ·
I'm sorry but didn't notice in your first attempt, there must be spaces for each parameter,
parameters are as follows:
dism
/image:C:\
/Cleanup-Image
/RestoreHealth

Therefore 3 spaces in total, example, sentence with 4 words:
dism <space> /image:C:\ <space> /Cleanup-Image <space> /RestoreHealth
 
Save
#12 ·
I assume you still have the same command prompt open?
If yes, run following command:

Code:
mkdir C:\scratch
Then run this: (note that this are now 5 parameters, meaning 4 spaces)

Code:
dism /image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RestoreHealth
Let me know the result of this.

And then here is alternative command if the above doesn't fix the problem (note 4 spaces!):

Code:
dism /image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RevertPendingActions
Let me know the result of this one too.
 
Save
#16 ·
ok, if the command results in error once there is no point to re-run again.

Problem was not fixed with these simple steps, and there are multiple options to continue from this point,
The easiest for you to follow would probably be to try system restore.

System restore:
According to your screenshot in initial post there is "Advanced" button, if you click on it there should be "system restore" option.
Use it to restore system back in time, (for example the latest good restore point)

Startup repair:
If system restore doesn't work then second option is to Download Windows 10 and use startup repair option.
Download Windows 10 here:
https://www.microsoft.com/en-us/software-download/windows10

This link explains how to create bootable USB stick on a working computer.
When done you'll have to attach USB to trouble PC and boot from USB, once you do so in the first or second screen you'll see an option that says "Repair your computer" (the option looks like a link on which you click)

There choose startup repair and follow screen instructions.
Just make sure not to use USB to install Windows because all existing data on computer might be lost for ever.

More command prompt:
3rd option is to get back to command prompt:

First it might help to share this log, by copying it from C:\ to USB drive, however this log will no longer be there because it's only in memory for now.

Meaning you'll have to re-run this command:
Code:
dism /image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RevertPendingActions
you know how to learn USB letter from my previous post, attach USB and run:

Code:
copy X:\WINDOWS\Logs\DISM\dism.log F:\
Then share this log here.

Another option is to use downloaded Windows to perform repair with dism.
More on that another time.

Manual update removal:
More on that another time, but is an option too.

Last resort is to reinstall Windows, but first if you have valuable data, personal files, bookmarks and similar on this PC which you care about, then there is a need to back it up to another external drive because everything will be lost with OS re-installment.

If you need help backing up data let me know, if not just go ahead and reinstall Windows and problem is done. You'll have new empty Windows.
 
Save
#18 ·
option 2 - Start Up Repair - download Windows 10 - so I am going to download Windows 10 onto a USB ? a) That requires a 8 gig stick, which I currently do not have but will buy one if necessary ; b) don't I need a license ?

Or am I suppposed to do something else ?
 
#20 ·
so I am going to download Windows 10 onto a USB ?
No, download to location of your choice on a working computer. (not to USB)
a) Download size is approx. 4,7GB so yes you need a USB stick of 8GB. (or minimum 5GB)
b) To download Windows and use it to repair existing Windows you don't need a license.

To reinstall Windows you don't need a license either because the license of currently installed Windows (on trouble PC) is stored on Microsoft activation servers, so after installation it will be automatically activated.

However in the case of OS reinstall, important thing to know is that you need to install same edition of Windows that is currently installed, otherwise activation will fail.

Since there is no USB stick at the moment we have only one option left, but I'm afraid it will not work.
Can you get to command prompt like yesterday?

Then follow step from my post "More command prompt" and share log here.
 
Save
#24 ·
Try with:
Code:
dism /image:C:\ /get-packages /ScratchDir:C:\Scratch
And then if OK second command:
Code:
dism /image:C:\ /ScratchDir:C:\Scratch /Remove-Package /PackageName:PACKAGE

To find out try one of these:
wmic os get caption
OR
systeminfo | findstr /B /C:"OS Name"
OR
systeminfo | findstr /C:"OS"
 
Save
#22 ·
Here is what you need to run:

Code:
dism /image:C:\ /get-packages
This will list you installed updates, the order from most recent updates to oldest goes from top to bottom.

You want to get rid of the most recent update, here is how:

Scroll up to see most recent package, then with your mouse highlight entry "package-identity" value (package name only) and press enter to copy.
NOTE: To highlight package name left click (and hold) on starting letter of the package name and drag mouse to the end of package name.

To attempt to remove package type this (excluding PACKAGE placeholder at the end):
Code:
dism /image:C:\ /Remove-Package /PackageName:PACKAGE
Instead of PACKAGE press SHIFT + Ins on your keyboard to paste previously copied package name, then hit enter.

Here is just an example (do not use):
dism /image:C:\ /Remove-Package /PackageName:Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.488
 
Save
#29 ·
Fixing system without fresh image won't work just like that...

You need to download Windows 10 and create bootable USB as explained on download page:
https://www.microsoft.com/en-us/software-download/windows10

The real issue now is that we don't know which edition of Windows is installed, it is possible to figure out,
but it's not easy to do.

Are you sure the command wmic os get caption gave you just "Microsoft" and nothing else??
Please check again.

Do you have any data on this trouble PC that you care about?
 
Save
#30 ·
Btw. there should be Windows sticker somewhere on your PC which should state Windows edition.
You can also take a look at Windows DVD if you purchased Windows in store, or somewhere inside papers that you got with this PC.
 
Save
Status
Not open for further replies.
You have insufficient privileges to reply here.