Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Dism /Online /Cleanup-Image /RestoreHealth not working


  • Please log in to reply
25 replies to this topic

#1 thatoneguyyep101

thatoneguyyep101

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 09 January 2017 - 01:00 AM

When I run Dism /Online /Cleanup-Image /ScanHealth or Dism /Online /Cleanup-Image /CheckHealth they both run fine.

But when I try running Dism /Online /Cleanup-Image /RestoreHealth the bar thing slowly progresses to 100%, then once at 100 it sits there for few minutes then says something about the source files not being able to be found.

This laptop was originally windows 8, then 8.1 and now 10.

Yes I have done a clean install via a usb drive that I got from microsoft website. (please see attached image)

Note: No I did not have the flash drive plugged in while running the commands, if that is necessary please let me know :)



BC AdBot (Login to Remove)

 


#2 dhjohns

dhjohns

  • Members
  • 159 posts
  • OFFLINE
  •  
  • Local time:03:53 AM

Posted 09 January 2017 - 10:47 AM

Check out this

 https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_install/how-to-repair-your-system-files-using-dism-and-sfc/1021b42a-09ff-41a0-a95a-48f3ee3ae699


#3 britechguy

britechguy

    Been there, done that, got the T-shirt


  • Moderator
  • 9,326 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Staunton, VA
  • Local time:09:53 PM

Posted 09 January 2017 - 10:54 AM

I have had this happen when the machine has lost its internet connection during the RestoreHealth process.  It can involve retrieving files via download from Microsoft (not always does, but can - and if you get this message and don't have an active internet connection that's the first thing I'd suspect).  Every time I've encountered this, and done a subsequent run with internet connectivity, the issue has disappeared.


Brian  AKA  Bri the Tech Guy (website in my user profile) - Windows 10 Home, 64-Bit, Version 1809, Build 17763 

     Presenting the willfully ignorant with facts is the very definition of casting pearls before swine.

             ~ Brian Vogel

 

 

 

              

 


#4 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 09 January 2017 - 11:24 PM

I have tried it 3 times or so, I use my phone as a hotspot, so I can connect to internet on my laptop. No other devices were connected to the phone... I checked on the phone and it said only 1 device was connected, which was the laptop. I even tried running the command in safe mode with networking or whatever. Thank you for your response though britechguy but I don't feel this is the issue.

 

dhjohns... Thank you for your response also. Maybe it will help. I have a few questions though... when I plugin the flash drive that I'd use to reinstall windows should something bad happen, it is labeled as "ESD-USB" on drive (F:) so how would I run the command?

Also when I downloaded the iso file or whatever from microsoft I don't remember which build or whatever of windows 10 it is... so before I run the " DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:X:\Sources\Install.wim:1 /LimitAccess" command or whatever, does my current ISO thing have to be for the same version of windows 10 I'm currently using?

I'm currently using 14393. But I think the ISO is from before anniversary update or whatever? How do I find out? Does it even matter? Where do I go to get a more current ISO for the flash drive?

When I go to https://www.microsoft.com/en-us/software-download/windows10 it says "We noticed you are running Windows 10. If you are looking to update to the latest version, click Update now." but I thought I was using the latest version?

This is confusing ):

Sorry for all the questions. Never had to do this before, so I don't know.


Edited by thatoneguyyep101, 09 January 2017 - 11:25 PM.


#5 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 12 January 2017 - 05:37 AM

*bump* (not sure if it's okay to do that?)

I need help when someone is able please.

When I try running Dism /Online /Cleanup-Image /RestoreHealth it gives me an error code of 0x800f081f.

Says "The source files could not be found."

I have also tried attaching my flash drive that I used with the media creation tool thing.

I'm not sure how to correctly use it though.

The flash drive is named ESD-USB on drive F.

 

I read some stuff, not sure if any of it could help me?

https://answers.microsoft.com/en-us/windows/forum/windows_8-update/dismexe-online-cleanup-image-restore-health-failed/668ef107-5f4c-4959-ba93-76d052452315?page=3

 

specifically the part that says "In the elevated command prompt, copy and paste the command below, and press Enter.
Dism.exe /online /Cleanup-Image /StartComponentCleanup

3. In the elevated command prompt (as administrator)  copy and paste the command below, and press Enter.
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase

4. Exit command prompt and do a restart after you have restarted Open elevated command prompt (as administrator).  Dism.exe /online /Cleanup-Image /RestoreHealth"

 

or what about anything on page 4 of that same thread?

 

Thank you :)


Edited by thatoneguyyep101, 12 January 2017 - 05:38 AM.


#6 Steven_M

Steven_M

  • Members
  • 110 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Hermit Kingdom
  • Local time:03:53 AM

Posted 12 January 2017 - 05:49 AM

First off, have you tried sfc /scannow, given what you've been posting I assume the same message pops up when you try and run sfc as well.


Edited by Steven_M, 12 January 2017 - 05:53 AM.


#7 britechguy

britechguy

    Been there, done that, got the T-shirt


  • Moderator
  • 9,326 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Staunton, VA
  • Local time:09:53 PM

Posted 12 January 2017 - 02:08 PM

Steven_M,

 

           This topic somehow dropped off my radar, but you beat me to what would be my first suggestion.  I always run an "SFC /scannow" command prior to any use of DISM just to see what it says.

 

            If it fails, and the original poster does not have any programs or apps installed on his computer that could not be easily reinstalled, this is an instance where I'd be far more likely to use the "Reset this PC" with "Keep my files" option of the Settings, Update & Security, Recovery Pane.  

 

            If the SFC comes back clean I'd retry the DISM.  If the DISM still fails I would also consider a Reset with Keep my files.  It pretty much guarantees a clean slate as far as the Win10 OS and its component parts go.


Brian  AKA  Bri the Tech Guy (website in my user profile) - Windows 10 Home, 64-Bit, Version 1809, Build 17763 

     Presenting the willfully ignorant with facts is the very definition of casting pearls before swine.

             ~ Brian Vogel

 

 

 

              

 


#8 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 12 January 2017 - 10:46 PM

Windows Defender sometimes gives me an error code when I update the definitions. It'll download them fine, but it'll stall on the installing part sometimes and give me an error code. I never made a note of the error code... is there a way to look that up?

I've read that people that have the issue I'm having also have had issues with windows defender updating definitions.

Yes I have tried sfc /scannow

I tried that before I even tried dism.

 

I don't completely disagree with doing the "Reset this PC" with "Keep my files" option but it seems like even after that people are saying that windows update is somehow corrupting dism or whatever, so they're having to do the "reset this pc" thing multiple times as windows update breaks it??

 

I am fairly sure it's not due to viruses or malware, as I don't download anything via p2p programs like keygens or anything like that.

I have ran scans using windows defender, adwcleaner, kaspersky security scan, kvrt, malwarebytes, msert, superantispyware, bitdefender online, malware hunter, pandafreeav, hijackthis (didn't make any changes, just looked around). Most programs didn't find anything, but what was found were adware tracking cookies that I removed, and the program unlocker as a PUP, but I use that.

 

It seems silly to me to do the "reset this pc" option just to have it messed up again due to windows update or whatever.

I have a usb flash drive that I used the media creation tool with... can't I just use that somehow?

I tried the command before, but maybe I did it wrong because it didn't work.

 

Update: Just tried sfc /scannow. It didn't work. Says windows resource protection found corrupt files but was unable to fix some of them. Then points me to CBS.log


Edited by thatoneguyyep101, 12 January 2017 - 11:04 PM.


#9 britechguy

britechguy

    Been there, done that, got the T-shirt


  • Moderator
  • 9,326 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Staunton, VA
  • Local time:09:53 PM

Posted 13 January 2017 - 12:01 AM

Reset completely replaces the Windows 10 operating system including all supporting files.

 

I have no idea how your system has become corrupted and, really, that's not really relevant at this point anyway.

 

If you do not have a lot of third party programs installed I'd just bite the bullet and do a Reset with save files option. 

 

I do not attribute your issue to Windows Update.


Edited by britechguy, 13 January 2017 - 12:02 AM.

Brian  AKA  Bri the Tech Guy (website in my user profile) - Windows 10 Home, 64-Bit, Version 1809, Build 17763 

     Presenting the willfully ignorant with facts is the very definition of casting pearls before swine.

             ~ Brian Vogel

 

 

 

              

 


#10 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 13 January 2017 - 12:17 AM

I'm doing a Reset right now with the keep my files option.

I selected the "do a clean install" option or whatever, which downloaded a tool named "RefreshWindowsTool.exe" which then asked if I wanted to keep my files, and I told it yes.

So right now it says it's downloading windows 10. So if this issue happens again pretty much right away I know it's not anything I did.

I don't know how it happened either. I haven't used anything to fix the registry because seems like people frown on third party apps messing with the registry.

I haven't used p2p programs.

When I use adult websites I do it using inprivate browsing or whatever as to not leave cookies and all that behind or to help prevent harm to the computer.

But I've looked up this issue, and other people have it, but no one seems to know why, or how to actually fix it.

 

 

Reset is 96% done downloading. So if I don't come back for forever, it's because my computer hates me and something went terribly wrong D:


Edited by thatoneguyyep101, 13 January 2017 - 01:19 AM.


#11 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 13 January 2017 - 04:49 AM

Seems to be working good so far after the reset. I'm going to install windows updates and see if sfc /scannow still works after they're all installed.

If so then I'll reinstall my programs and windows apps and see if it works again.

If it works after all that then I have no idea what caused it and dism to stop working.

 

It's annoying it broke to begin with and the only way to fix it was a reset. Be cool if there was a working tool or command, etc.

Thank you to everyone that helped.

I'll be randomly running sfc /scannow after I reinstall things and let you know if anything I did caused it.

I know I had malwarebyes or superantispyware or something protecting operating system files or some setting like that but I don't like that'd interfere with sfc or dism?


Edited by thatoneguyyep101, 13 January 2017 - 04:52 AM.


#12 Steven_M

Steven_M

  • Members
  • 110 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:The Hermit Kingdom
  • Local time:03:53 AM

Posted 13 January 2017 - 05:02 AM

Good news :)



#13 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 13 January 2017 - 06:23 AM

So far I have installed all updates that were available for Store. I have also installed all updates that were available in windows update which were....

Windows Malicious Software Removal Tool for Windows 8, 8.1, 10 and Windows Server 2012, 2012 R2, 2016 x64 Edition - January 2017 (KB890830)

Security Update for Adobe Flash Player for Windows 10 Version 1607 (for x64-based Systems) (KB3214628)

Update for Windows 10 Version 1607 for x64-based Systems (KB3199986)

After all that stuff downloaded and installed without problems I ran sfc /scannow just to make sure it still works, and it does.

 

When doing the Reset earlier I forgot to take the wireless usb adapter thing for my mouse out, and I think that sorta stalled it for a bit.

So it's good I remembered to do that, as I know things plugged into usb ports can stall things sometimes.

Also when running windows update for the first time it said that there were updates available, it downloaded them, but never appeared to be installing them...

I then decided to recheck for updates and it said there was already an install in progress and restarting may help or whatever.

I then waited a bit, then rechecked for updates, and it popped up and showed me which ones were installing. They are all installed fine now.

 

Tomorrow I will be installing my programs, and randomly running sfc /scannow to see if anything bad happens along the way.

For now though all Store and windows updates are installed :) (and sfc still works!)

Sorry if I sound like such a geek, it's just annoying that there's a tool to fix that problem, and even that didn't work.



#14 britechguy

britechguy

    Been there, done that, got the T-shirt


  • Moderator
  • 9,326 posts
  • ONLINE
  •  
  • Gender:Male
  • Location:Staunton, VA
  • Local time:09:53 PM

Posted 13 January 2017 - 10:01 AM

While I feel your pain, you are really getting exercised over this for what to me is no apparent reason.

 

Inexplicable corruptions of various sorts can occur, and do occur, "all the time" in the grand scheme of things but not very often for any one given user.  This is not limited to Microsoft or Windows, either.

 

One of the beauties of Windows 10 is that it does include various "levels" of self-repair tools, including Reset, which repairs the entire OS without necessarily needing to do the long required backup/fresh install/recover backed up user files/reinstall programs sequence.

 

You have just lived through how much easier Windows 10 makes it to recover from some serious system file corruption, regardless of the cause.

 

I understand entirely the desire to "know what made this happen."  The sad fact, though, is that as often as not you will never have that satisfaction.

 

I'm really glad that all has worked out.


Brian  AKA  Bri the Tech Guy (website in my user profile) - Windows 10 Home, 64-Bit, Version 1809, Build 17763 

     Presenting the willfully ignorant with facts is the very definition of casting pearls before swine.

             ~ Brian Vogel

 

 

 

              

 


#15 thatoneguyyep101

thatoneguyyep101
  • Topic Starter

  • Members
  • 251 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:09:53 PM

Posted 17 January 2017 - 12:52 AM

britechguy- I believe I found the problem. So I went to Settings>Recovery>on bottom of page clicked where it says "Learn how to start fresh with a clean installation of Windows" under where it says "More recovery options".

It opens up a wizard/program, which downloaded files, and at one point asked me if I wanted to keep my files, I told it yes.

It took forever. But eventually I did end up with a clean installation of windows, with my files back on the desktop (out of order, but there), then the rest are in a windows.old folder.

 

Anyways I was setting things back up the way I like them, and randomly running sfc /scannow to see if it's anything I did.

I ended up changing a few firefox settings, changing a few registry things to make indexing to not be slowed down when I'm using the computer, etc.

 

Then I finally ended up installing Group Policy Editor. I have home edition of windows 10, but I thought it'd be cool to be able to run gpedit.msc

So I have a folder on my desktop named "add_gpedit_msc_by_jwils876-d3kh6vm.zip"

Which has a setup.exe file in it. I ran it, it ended up saying it needed more components I think, which was .NET Framework 3.5 (includes .NET 2.0 and 3.0)

A command window comes up saying files were copied successfully or whatever. Then since I am using 64bit I had to follow some more commands... such as....

  1. "Go to C:\Windows\SysWOW64 folder
  2. Copy the following folders and files to C:\Windows\System32
    GroupPolicy“, “GroupPolicyUsers” and gpedit.msc."

I got the instructions and setup file from here.... https://www.itechtics.com/enable-gpedit-windows-10-home/

Anyways then I do sfc /scannow and it says it found corrupt files but was unable to fix some of them or whatever.

But the only thing I had done since running sfc /scannow the last time was run the file mentioned above.

I made a restore point... so I used that, and then everything was fine, sfc /scannow worked fine with no integrity violations.

I then made a new restore point, ran the file again to add group policy editor on my computer, and ran sfc /scannow afterwards, didn't even restart the computer or anything, and it again found corrupt files that it couldn't fix or whatever.

 

So I believe that using the "setup.exe" file in the folder named "add_gpedit_msc_by_jwils876-d3kh6vm.zip" is making it so sfc /scannow does not work.

Because that is literally the only thing I changed since the last time I ran it, and I am able to reproduce the same results over and over.

If I go back to right before I ran it the computer is fine, but once I run it sfc /scannow says it found stuff it couldn't fix.

 

I haven't installed anything else other than office starter 2010, and the windows updates, but I checked and none of those kept sfc /scannow from working properly.

So why does running the setup file to be able to run gpedit.msc break it?

I scanned the setup file on virustotal and out of 55 scanners it uses only 2 say that it's a problem file....

CMC= WebToolbar.Win32.RK!O

Rising= Malware.Undefined!8.C-nX8Z4JK9ZgF (cloud)

It has 39 bad votes and 98 good votes.

Results can be seen here: https://virustotal.com/en/file/5c402fd8244e177338a2a8f0c7b8df055d5a06ebd7a5225edb3d3cdaf1d1c749/analysis/1484632144/

I noticed when I am looking at the results and I click where it says "Relationships" it says "This file was created during the sandboxed execution of the following files." then there are two results. If I click the top one it opens a new window and it says the filename is "a7913157b302e1dd6fa6be43e55d3aae.virus"

What do the "relationship" results mean? and why is there a file named "a7913157b302e1dd6fa6be43e55d3aae.virus"?


Edited by thatoneguyyep101, 17 January 2017 - 01:02 AM.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users