Home Gadgets FIX: DISM Error 50, DISM does not support servicing Windows PE with the /Online…
Gadgets

FIX: DISM Error 50, DISM does not support servicing Windows PE with the /Online…

What is DISM on Windows: What It Does and How To Use It

The Deployment Image Servicing and Management (DISM.exe) or DISM is a command-line tool that can be used to service and prepare Windows images. including those used for Windows PE, Windows Recovery Environment (Windows RE) and Windows Setup. DISM can be used to service a Windows image (. wim) or a virtual hard disk.

It helps check for faulty or damaged Windows features and system files. This command is used to check for and fix any problems with your operating system.

In this blog post, we’ll take a look at what DISM is, what it does, and how to use it on Windows. You can also find out how to use common DISM commands, their variables, and what they do to restore files on your device.

What is the Deployment Image Servicing and Management Tool (DISM)?

The DISM command is a part of the Deployment Imaging and Servicing Management (DISM) tool, which allows you to check for faulty or damaged Windows features and system files. The DISM tool can be used to identify and fix a wide variety of problems with your operating system.

DISM restores the system image by mounting images in.wim.vhd, or.vhdx formats and using them to repair your installation of Windows. DISM can be used with older Windows image files, but not with images that are newer than the Windows version currently installed on your device.

When you start seeing problems like Blue Screen of Death (BSOD), application crashes, or specific Windows 10 functions stop working, it’s a symptom of missing or corrupted system files. DISM can help you resolve problems like this, and works best when used together with other commands, such as the System File Checker (sfc scannow).

However, you may find that scan results show that the System File Checker discovered damaged files but could not repair them. Alternatively, Windows Resource Protection discovered faulty files but was unable to repair them, and so on. In this case, use the DISM command to remedy the issue.

Where is DISM?

Deployment Image Servicing and Management (DISM.exe) is a command-line tool that can be used to service a Windows image or to prepare a Windows Preinstallation Environment (Windows PE) image. For more information about DISM see What is DISM?

DISM is in the c:\Windows\system32 folder of all Windows 10 and Windows 11 installations, but you can run DISM in the command prompt from any location.

Note: DISM has to run from a Command Prompt running as administrator.

How to use the DISM command on Windows

To use the DISM tool and check your Windows installation for errors, you need to run its command-line utility in the Command Prompt. There are a variety of command variables you can use that carry out different tasks. Read the summary below and follow the steps to run DISM on any Windows device.

Use the DISM command with ‘CheckHealth’ option

The CheckHealth option in DISM lets you quickly see if the local Windows image has any corruptions. This option, however, does not perform any repairs. It’s just a health check for your system image, which can be a quick way to diagnose problems. Use this command to verify any Windows image faults.

  • Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows S keyboard shortcut.
  • Type Command Prompt in the search box. When you see it in the results, right-click on it and choose Run as Administrator. If you’re using a local account that doesn’t have administrator permissions, click here first.
  • When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions. This is needed in order for the DISM command to be able to access your system files.
  • Type or paste in the following command and press the Enter key on your keyboard to execute it: DISM /Online /Cleanup-Image /CheckHealth
  • Wait for DISM to diagnose your device. If any problems are found, it will attempt to identify them and report back with the results. Otherwise, if your system image appears healthy, you’ll see the “ No component store corruption detected. ” message.

After you’ve finished the above instructions, DISM will run and check for any data corruption that needs to be fixed. Again, the ‘CheckHealth’ argument doesn’t restore any corrupt files. To do that, you need to use one of the other commands below.

Use the DISM command with ‘ScanHealth’ option

To get the most accurate results about your system’s integrity, you need to run a more advanced scan. Get an even more in-depth analysis of your current system state by using the ScanHealth argument in the DISM command.

  • Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows S keyboard shortcut.
  • Type Command Prompt in the search box. When you see it in the results, right-click on it and choose Run as Administrator. If you’re using a local account that doesn’t have administrator permissions, click here first.
  • Type or paste in the following command and press the Enter key on your keyboard to execute it: DISM /Online /Cleanup-Image /ScanHealth
  • Wait for DISM to analyze your system and check for any issues. It may take an extended amount of time, as the CheckHealth command does a deep scan of your OS to identify complex problems.
  • Review the results.

Once the DISM scan is complete, you’ll be able to see whether or not it found any issues with your operating system. Afterward, you can take the appropriate steps to troubleshoot your device or move on to the next command for repairs.

Use the DISM command with ‘RestoreHealth’ option

If the system image is corrupted, you can use DISM with the RestoreHealth option to automatically scan and also correct common faults. Follow these procedures to utilize the DISM command tool to fix Windows system image issues.

  • Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows S keyboard shortcut.
  • Type Command Prompt in the search box. When you see it in the results, right-click on it and choose Run as Administrator. If you’re using a local account that doesn’t have administrator permissions, click here first.
  • Type or paste in the following command and press the Enter key on your keyboard to execute it: DISM /Online /Cleanup-Image /RestoreHealth
  • It’s common behavior if the command looks to be stuck at any stage. The procedure will be completed successfully after a few minutes.

If your system image is corrupt or damaged, the Deployment Image Servicing and Management application will connect to Windows Update online. It’s going to download and repair damaged files once you’ve completed the scan.

How to fix DISM not working on Windows

In some cases, you may need to restore DISM itself. This is a rare problem that can occur as a result of malware, system corruption, or a rogue Windows update. Luckily, restoring the functionality of DISM isn’t as hard as it sounds. The steps below will guide you through the process so you can use DISM again momentarily.

Method 1. Check your computer for malware

We recommend doing a virus scan on your computer to make sure your system is in good shape and there aren’t any threats interfering with DISM.

We’ll utilize the Windows Defender built-in application, which is available for free in Windows, to scan your device. We recommend purchasing a third-party program that specializes in real-time protection to receive a more detailed assessment of your device’s health.

  • Open the search bar in your taskbar by clicking on the magnifying glass icon. You can also bring it up with the Windows S keyboard shortcut.
  • Type in Windows Security and launch it from the search results.
  • Switch to the Virus Threat Protection tab using the home screen or the menu in the left-side pane. Click on the Scan Options link.
  • Select the Full scan option. This is going to check every single file on all of your drives to ensure no threats can hide. Take note that this scan may last over 1-2 hours, depending on how many files you have on your system.
  • Click on the Scan now button to begin the scan. If a threat is detected, Windows will automatically quarantine or remove it entirely. You can review the scan results afterward.

Method 2. Update Windows to the latest version

Updating your system can easily fix issues such as the DISM command not working. Here are the instructions. The steps below are for Windows 10. but they may also be used for Windows 8. and the most recent version of Windows 11.

  • Click on the Windows icon in the bottom left of your screen to bring up the Start menu. Choose Settings. or use the Windows I shortcut.
  • Click on the Update Security tile. This is where you can find most of your Windows Update settings and choose when to receive updates.
  • Make sure to stay on the default Windows Update tab. Click on the Check for updates option and wait for Windows to find available updates. If you see any updates displayed, click on the View all optional updates link to see and install them.
  • When Windows finds a new update, click on the Install option. Wait for Windows to download and apply the necessary updates.

Method 3. Reset Windows Update components

Windows Update can get corrupted at times, requiring a reset. After doing so, you’ll be able to install previously stuck updates without issue, which may help you repair the DISM command.

  • Open the search bar ( Windows S keyboard shortcut) and type Command Prompt in the input box. Right-click on the matching search result and choose Run as Administrator.
  • When prompted by the User Account Control (UAC), click Yes to allow the app to launch with administrative permissions.
  • First, you need to stop four services that may be running on your device. To do this, input the commands below in the following order, pressing the Enter key on your keyboard after each line:
  • ren C:\Windows\SoftwareDistribution SoftwareDistribution.old
  • ren C:\Windows\System32\catroot2 catroot2.old
  • net start wuauserv
  • net start cryptSvc
  • net start bits
  • net start msiserver

Final thoughts

That’s all there is to know about the DISM command on Windows, including what it does, how it works, and when it should be used. We hope you found our post useful in resolving DISM difficulties and learning more about the procedure.

If there are any questions left unanswered or problems not addressed, please feel free to reach out — our team of experts would love to help! In the meantime, keep up with all things tech by checking back for more articles about troubleshooting and following us on social media.

Follow our Blog for more great articles like this one! In addition, you can check our Help Center for a wealth of information on how to troubleshoot various issues.

One more thing

Sign up for our newsletter and get early access to our blog posts, promotions, and discount codes. Thank you for reading! We hope to see you again soon.

Recommended articles

Feel free to reach out with questions or requests you’d like us to cover.

FIX: DISM Error 50, DISM does not support servicing Windows PE with the /Online option (Solved)

This tutorial contains instructions to resolve the following error when running the DISM command “Dism.exe /Online /Cleanup-Image /Restorehealth” from the Windows Recovery Environment: “Error 50, DISM does not support servicing Windows PE with the /Online option”.

The above error is occurred, because in WinRE the operating system is not running, so the /Online switch is useless at this case. In fact the /Online switch in DISM tool, specifies that the action is to be taken on the operating system that is currently running.

How to fix: Error 50 DISM does not support servicing Windows PE with the /Online option. (Windows 10)

After booting your computer from the Windows 10 installation media, press SHIFT F10 keys at the first install screen to launch Command Prompt. 2. Inside the WinRE command prompt window, get a list of all available drives, by giving this command:

Then find out which drive contains the “Windows” folder, by typing this command:

e.g. To see the contents of the C: drive, type: “dir C:” (without quotes). If you cannot see the “Windows” folder on the C: drive, then continue to the next drive (e.g. “dir D:”, “dir E:”, etc.), until see the “Windows” folder.

[As you can see at the screenshot below, the Windows folder (at this case) is located at the D: drive.]

Once you find the “Windows” drive (e.g. the “D” in this example), give this command to repair the offline Windows image:

Notes: 1. Where D = the Windows drive. (Change it according your situation) 2. There is space between \ / (“…/Image: D :\ /Cleanup-Image…”) 3. If after executing the above command, you receive the “Error 0x800f081f: The source files could not be found”, then perform a repair upgrade. To do that:

When the DISM operation is completed, give the following SFC command to complete the repairs.

dism, error, does, support

Notes: 1. Where D = the Windows drive. (Change it according your situation). 2. There is space between \ / (“…/OFFBOOTDIR= D :\ /OFFWINDIR…”)

When the operation is completed, reboot your computer.

Note: If you cannot fix the error using the above instructions, backup your files and clean install Windows.

Please leave a comment in the comment section below or even better: like and share this blog post in the social networks to help spread the word about this solution.

If this article was useful for you, please consider supporting us by making a donation. Even 1 can a make a huge difference for us.

dism, error, does, support

Eight Different Ways to Take Screenshots in Windows 11/10.

75 Комментарии и мнения владельцев

Thank you, thank you, thank you! So many DISM instructions assume you are using it from within Windows, this was the first tutorial I found telling me what to do from the repair environment. After following the instructions, I rebooted but still got the RE, so thought it hadn’t worked (even though it told me it had repaired files) so I tried a system restore which also failed. Rebooted after that and all came up good. Not sure quite what was going on, but certain it was thanks to you.

None of the commands in the article are working, for example: “Error: 1639 The command-line is missing a required servicing command.” this in response to: dism.exe/Image:D:\/Cleanup-Image/Restorehealth

Typed in Dism.exe /image:C:\ /cleanup-image /restorehealth Got Error: 2 Unable to access image. Make sure that the image path and the Windows directory for the image exist and you have the Read permissions in the folder. The DISM log file can be found at X:\Windows\Logs\DISM\dism.log How do i fix this?

I have run this command twice so far and both times I have received the following: “Error: 1016 An error occurred whle attempting to access the image. For more information, review the log file. The DISM log file can be found a X:\Windows\Logs\DISM\dism.log” From this error message I am presuming that the repair did not work. I would review the DISM log file, but I am sure that I would not know what to do with the information I saw there. Even so, I am grateful for the attempt. I feel like your instructions got me closer to saving the information on my hard drive than any others out there so far. Thanks for your straightforward and clear instructions.

Randy: I think you enter a wrong drive letter in the SFC command. Please try the following and tell me the resultts: 1. In (WinRE) Command prompt type bcdedit and press enter. 2. Look in which partition you see “systemroot ——\Windows”. 3. Then look above that line to find out the drive letter (e.g. “osdevice —- partition=D:”). 4. Finally give the “SFC /SCANNOW /OFFBOOTDIR=X:\ /OFFWINDIR=X:\Windows” command but replace the “X” letter with the letter at ‘osdevice’ line (e.g. “D”).

dism, error, does, support

Lakonst, I hope I’m not reposting. I responded but it looks like my last comment got lost. I followed the original instructions and discovered that the “Windows” folder is on drive “C” in my laptop. I ran “bcdedit” and confirmed that information. I wish it was something as simple as the Windows folder just being on a different drive, but, sadly, that’s not the case. Any other ideas? Thanks.

Randy, 1. Give the following command in WinRE command prompt: DISM /Image:C:\ /Get-Packages 2. If you receive the same error (“An error occurred while attempting to access the image”), then try to restore the registry with this command: copy C:\Windows\System32\config\RegBack\. C:\Windows\System32\config 3. Then again give: DISM /Image:C:\ /Get-Packages 4. If the output is a list of the installed packages, restart and try to boot the PC normally and if you cannot boot give the below command to fix the image: dism.exe /Image:C:\ /Cleanup-Image /Restorehealth

Lakonst, I did follow the earlier instructions that told how to find which drive to address. Those instructions told me that the “Windows” folder was on drive C. When I run “bcdedit” it says, in the line above systemroot: “partition=C,” so I’m pretty sure I’m typing the correct drive letter. Any other ideas? Thanks!

The same error I received. Then what I did is I put a space between Image:C:\ /Cleanup-Image…. “C: \ /cleanup-image” That sloved my problem

Lakonst, I hope I’m not reposting. I responded but it looks like my comment got lost. I followed the original instructions and discovered that the “Windows” folder is on drive “C” in my laptop. I ran “bcdedit” and confirmed that information. I wish it was something as simple as the Windows folder just being on a different drive, but, sadly, that’s not the case. Any other ideas? Thanks.

dism.exe /Image:D:\ /Cleanup-Image /Restorehealth usually Windows is in drive C: dism.exe /Image:C:\ /Cleanup-Image /Restorehealth dont forget the space between \ / a message appeared that the scratch directory size might be insufficient, but the process went on still waiting for results while typing this message

rcb: Assuming that the Windows drive is the drive “D:”: 1. Give the following command to create a scratch directory: mkdir D:\Scratch 2. Then type the DISM command as follows: dism.exe /Image:D:\ /ScratchDir:D:\Scratch /Cleanup-Image /Restorehealth

I typed exactly as you mentioned. and received the error:3 “the system cannot find the path specified” “An error occurred closing a servicing component in the image”. what can be done now.

I didn’t leave out the gap sir… I typed exactly as you instructed. created the scratch dir and even after that when i eun the /restorehealth command i recieve “Error: 3” “The system cannot find the path specified” “An error occurred closing a servicing component in the image” “Wait a few minutes and try running the command again” Please tell me what else can be done.

Make sure that you boot your system with a Windows Installation media with the same Windows 10 edition architecture as the installed OS.

HI. I am getting error while running first command dism.exe /Image:D:\ /Cleanup-Image /RestoreHealth Error : 87 the restorehealth option in not recognized in this context.

Hello I hope you still respond to these Комментарии и мнения владельцев. I’ve done everything correctly, even created a scratch directory. But when the DISM hits 84.2% it gives me the “source file could not be found” error 0x800f081f. When googling this error I only get solutions that work when running DISM in Online not in WinRE… Could you help me with this? I can only boot my pc in safe mode otherwise it shows green horizontal bars and crashes (blackscreen) when loading Windows. thanks in advance

@Yannick: If you able to start Windows in Safe Mode with Networking then open and administrative command prompt and run this command: DISM /Online /Cleanup-Image /RestoreHealth

You are a life saver! I had spent hours trying to fix my computer. I stumbled upon your suggestion and it worked. Thank you!

Snir Amira: Repair Windows 10 by following the instructions from this article: https://www.repairwin.com/repair-reinstall-Windows-10/

Jimy: To fix the problem, try the following: 1. Make sure that the Windows folder exists at drive D:\. 2. Re-download and re-create the Windows installation media. 3. If you not able to fix the problem, then perform a Windows 10 repair upgrade. to do that: a. boot from the Windows USB media. b. At Windows Setup wizard, press ‘Next’ and then click ‘Install Now’. c. Accept the ‘License agreement’. d. When asked, select Upgrade: Install Windows and keep files, settings, and applications.

This blog was fantastic! I followed everything. You guys know what your talking about. Everything was exactly as it played out. Thanks for unknowingly helping!!

Hey Lakonst – went through all of the processes in this thread – no go – also did the scratch directory – still getting an error – 23 – An initialization error occurred… any ideas? thanks!

If the ‘Windows’ folder is on drive D:\, then: 1. Run this command: DISM /Image:D:\ /ScratchDir:D:\Scratch /Cleanup-Image /RevertPendingActions 2. Restart your PC and try to boot to Windows normally.

Hello, i’m from Turkey so my English is not good. My Windows folder is in C disk. I wrote “dism.exe /Image:C:\ /Cleanup-Image /RestoreHealth” after than i give me a Error: 2 An initialization error occured. For more information, review the log file. The DISM log file can be found at X:\Windows\logs\DISM\dism.log

Run this command: DISM /Image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RevertPendingActions 2. Restart your PC and try to boot to Windows normally.

I got error 0x800f081f The source files could not be found, Use the “source” option to specify the location of files that are required to restore the feature. What am I doing wrong?

@Greg: Nothing. The Windows installation is damaged. I suggest to perform a Windows 10 repair upgrade. To do that: a. boot from the Windows USB media. b. At Windows Setup wizard, press ‘Next’ and then click ‘Install Now’. c. Accept the ‘License agreement’. d. When asked, select Upgrade: Install Windows and keep files, settings, and applications. If you cannot perform the upgrade, then backup you files and clean install Windows again.

Hi there! I successfully got through step 5 and executed “SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows” Now I am stuck on “Beginning system scan. This process will take sometime.” Any idea how much time can it take?

Same here. I could scanhealth and it didn’t find any problem. However, scannow is stuck with the same message and it’s been over an hour. Without displaying the percentage or anything. Help

After I minimized the window and reopened, the message was there saying the scan finished without a problem. Still, my PC won’t start. I don’t know why this happened to it. The problem started after I restarted the PC, but I often did and the Windows version was the newest. I used a pre-installed software called “HP Power AC” or something that let’s you keep your battery low even when the PC is connected to the adapter. It was before I restarted the PC. Do you think it caused the issue?

I got error 50 again. It tells me I need the latest version of the dism but I can’t even get into my computer since it won’t let me enter my pin (and I can’t enter safemode which is why I am doing this).

Hi. DISM.EXE command brings up the Error:50 message for me too. My issue comes from a system restore loop. Had to shut it down after twelve hours. When I restarted the computer, it started, “Preparing for Automatic repair” and after, “Diagnosing your PC” it gave a failure message. Said unable to repair. Try advanced options or shutdown. Can’t enter into safe mode with networking or anything without password. Yet, my password is correct. chkdsk scan showed no corruption. Having a issue getting into Safe Mode (F8) due to the automatic startup (Automatic system repair) interrupts as Safe mode option appears. Then it does the same, “Automatic System Repair” spiel.

Hello, First let me say this is a fantastic resource: Thank you. I have tried every built-in option to recover and repair my Windows 10 laptop. I even had problems booting directly into command mode. I can not longer even boot into safe mode. I found your blog and I verified Windows is on drive: C:: and ran: dism.exe /image:c:\ /cleanup-image /restorehealth. It completed quickly with “error: 23″ I checked the syntax and retried: no change. I then tried: scn /scannow /offbootdir=c:\ /offwinddir=c:\Windows … it starts, then returns: Windows resource protection could not perform the requested operation I have been very careful to check my syntax for typos. I’m still having fun trying to fix this, but have been working on it for days. Again: I have tried every option from within W10, even trying to boot with the Windows media creation tool from a flash drive. It goes into the endless repair loop “Can’t repair”. unsuccessful, etc etc. Note: When this all started, I.was- able to do a fresh re-set saving with the WIN10 tool: NOTHING saved, and it ran fine for a few days: then back to square one. Any ideas? I’m thinking either the drive or motherboard is the culprit. Earlier safe mode scans with Kaspersky, MalwareBytes and the Kaspersky Malicious Software removal tool turned up nothing. I’m wondering if there is anything left other than trying to reformat the drive

I was also able to run: DISM /Image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /RevertPendingActions This returned: Deployment Imaging Servicing and Management tool Version: 10.0.18362.1 Error: 123 Unable to access the image. Make sure that the image path and the Windows directory for the image exist and you have Read permissions on the folder…… Sounds like we’re done here?? 🙂

I believe that the drive is damaged. Connect it to another computer (if you can), backup you files and test the drive for errors. If the drive is OK then perform a clean Windows installation.

The DISM command and the SFC command completed without errors. The laptop still fails to boot, defaulting to the troubleshooter. I suspect we have a damaged hard disk. Any other possibilities?

Hello, when I try to run “SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows”, I get “Windows resource protection not perform the requested operation” When I try to run the Windows repair update from USB boot drive it says “Upgrade option is not available because there is already a copy of Windows 10 on the drive” paraphrasing here. Can’t run DISM because I am offline and I created a scratch directory but it still gave an error message? Can you please help me here. Thanks

Make sure that you use the correct USB Windows installation media according your Windows edition and architecture. (e.g. If you have Windows 10 64bit, you need Windows 10 64bit USB installation media.)

Yes I created the USB media with Windows 10 64bit, but it seem that it doesn’t allow the user to reinstall over your existing system to just fix Windows, you can only do that after loading Windows…with this offline option it is only to remove partitions and do a complete reinstall? Any ideas on the other commands? I really want to do a SFC Scan and DISM scan.

Excellent Post Follow-up. Thanks! I’m working on a client’s machine. Client claims they installed Windows 10 over Windows 7 some time ago. Running WMIC Logicaldisk get name returns C:, D:, E:, F:, G:, X: dir E: returns Windows7_OS dir G: returns Device not Ready Is it possible they installed Win 10 on G: and that’s corrupted? Running dism.exe /Image:G:\ /Cleanup-Image /RestoreHealth – returns “Error 21 – Unable to access Image.” Running chkdsk G: /f /r /x – returns “Cannot open volume for direct access” I am beginning to think the client may have not successfully installed Win10, and my job is to then resurrect the Win 7 Image. Thanks Jim

I tried this, but when I ran the command SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows I got the message There is a system repair pending which requires a rebooot to compete. Restart Windows and run Ssfc again. I tried this from both my recovery USB and without it but I keep getting this message when I run the sfc command. Help

Hi I am not e techie, but I am trying to fix an 8 year old pc, originally Windows 7 but upgraded over the years to the latest version of Windows 10. Last week it crashed on rebooting with the error SYSTEM THREAD EXCEPTION NOT HANDLED. I have been unable to boot into Safe Mode or restore the system from a Restore Point, and Startup Repair did not fix the problem, so I have created a bootable USB with Windows 10. When I enter SFC /SCANNOW /OFFBOOTDIR=F:\ /OFFWINDIR=F:\Windows I get the error message There is a system repair pending which requires reboot to compete. Restart Windows and run sfc again. I have tried rebooting my pc without success. Can you help resolve this, please?

Further to the above, can I safely delete the file pending.xml in the WinSxs folder? This is a suggestion on another forum

THIS WORKS. Wow, I had no idea why the commands every article suggested weren’t working for me. The info on finding the correct drive letter and running DISM with /OFFWINDIR was the key info everyone else was leaving out. Even after specifying that the fix worked “if you can’t boot to your Windows 10 installation”! I can’t thank you enough, you saved me from doing a full reinstall! I’ll be donating for that alone bookmarking your site for the next time Windows decides to crap out.

Man I don’t know if you will ever read this comment again but your explication on this dism command helped me restore my computer now and everytime it worked while nothing else was. Thank you very much !

Yes. Finally someone who knows how to fix the sfc /scannow not working issue Can writer also do a post on how to fix the persistant booting into the blue troubleshoot screen using bcdedit? Command prompt. bcdedit /deletevalue (current) safe boot. °Does nothing. Keep hetting command not valid, or string not recognised. I tried various alterations. “safeboot”, “”. Nothing Cmmand prompt. bcdedit /enum the boot configuration data store could not be opened system attempted to load or restore file into registry but… Any ideas?

Hello, Thanks for this article, but there is no such a thing as “repair upgrade”. Window installation disc doesn’t allow that. The only way to use that option is running setup.exe inside Windows, not in PE.

Hello! Not sure if you’re still answering Комментарии и мнения владельцев, but if you could help then I would highly appreciate it. I followed the instructions, and the Windows folder is in C. I put the following command: X:\Windows\system32dism.exe /Image C:\ /Cleanup-Image /Restorehealth Then it says : Deployment Image Servicing and Management tool Version: 10.0.19043.1766 The scratch directory size might be insufficient to perform this operation. This can cause unexpected behavior. Use the /ScratchDir option to point to a folder with sufficient scratch space. The recommended sizes at least 1024 MB. 10.6% Error: 112 There is not enough space on the disk. The DISM log file can be found at X:\Windows\Logs\DISM\disk.log I’m not sure how to use the /ScratchDir option. Could you please let me know how to fix this?

If the Windows drive is the drive “C:” 1. Give the following command to create a scratch directory: mkdir C:\Scratch 2. Then type the DISM command as follows: dism.exe /image:C:\ /ScratchDir:C:\Scratch /Cleanup-Image /Restorehealth

Thank you for the helpful guide, i had a blue screen most of the time with the error “unmountable boot volume”, after trying to exec chkcfk and sfc tool in the cmd in the boot diagnostic mode, the blue screen disappear but Windows hanged in the login screen with the message “Please wait for the session Manager”, flowing this guide the issue was resolved. Thank you

Thank you for such a great post. I tried everything suggested for all different errors. My specific issue is with BitLocker. Windows is in drive C. I get error 267 and everything I tried circulates back to the beginning. I followed few other things with the only configuration options given at the start screen. This a brand new computer, someone in the house started it up and didn’t follow proper steps. Now we are stuck with no Microsoft account connected to it, no backup points, cds or usbs, no keys and out of options. We are trying to do a full reset. Another error I get often is Error 0X80310000. Any suggestions?

How To Repair Windows 10 files Using DISM and SFC Utility

Have you noticed Windows 10 System Begins to feel buggy, Takes time to shut down or start, system freezes, responds or through Different Errors while open applications? These are the sign of System file corruption, Whenever come to us for Solution for that we Recommend to Run the System file checker Utility. that detects and Restore missing, damaged Files with a known good version, from a special cache folder located on %WinDir%\System32\dllcache.

But Some Times Users Report system file checker unable to repair corrupt files results “Windows Resource Protection found corrupt files but was unable to fix some of them”. If you are also struggling with problems like this running Deployment Image Servicing and Management (DISM) restore health do the job for you. Here How To Repair Windows 10 Using DISM and SFC Utility.

Note: If you see a “Windows Resource Protection found corrupt files but was unable to fix some of them” message, try restarting your PC in Safe Mode and running the command again. Still having the same issue SFC utility unable to fix then Try below.

Repair Windows 10 Using DISM Tool

There are three main options you can use with DISM to repair the Windows image on your computer, including CheckHealth, ScanHealth, and RestoreHealh, you want to use them in this order.

The DISM tool writes the following log files which can be used to analyze the operation status and errors:

DISM CheckHealth Command

To Fix and Repair Windows 10 Using DISM, First Open the command prompt as administrator. Then Type the Following command and hit enter key to execute the command.

Dism /Online /Cleanup-Image /CheckHealth

Note : The /CheckHealth is used to check whether the image has been flagged as corrupted by a failed process and whether the corruption can be repaired. This command doesn’t fix anything, only reports the problems if any.

DISM ScanHealth Command

Also, you can use the /ScanHealth command to check for the component store for corruption.

Dism /Online /Cleanup-Image /ScanHealth

It takes a significantly more extended amount of time than the CheckHealth option, but using this switch may be doing a thorough test, and also writes the results to a log file.

Note: While the running DISM using the /RestoreHealth or /ScanHealth, you will notice the process will seem stuck at 20% or 40%, but it’s normal behavior. After a few minutes, the operation will finish as expected.

DISM restorehealth Command

Now Use the DISM command with the /RestoreHealth switch to scan the Windows image for any corruption and to perform a repair automatically.

Dism /Online /Cleanup-Image /RestoreHealth

The above command will try to use Windows Update to replace the damaged files. This process takes a long time to complete. If the problem has also extended to the Windows Update components, then you’ll need to specify source containing the known good files to repair the image.

DISM RestoreHealth with Source options

For This First Download Windows 10 ISO with the same version and edition of your current version of Windows 10. After complete, the Download process Right Click The ISO File, Select Mount and Note down the Drive path.

Again Open the command prompt as administrator, type the command below and hit enter:

DISM /Online /Cleanup-Image /RestoreHealth /Source:ISOmountpath\install.wim

Or you can also run the following to limit the use of Windows Update:

How To Use The DISM Command to Repair Windows 10/11

DISM (Deployment Image Servicing and Management) is a powerful command-line tool to repair Windows images and fix system issues. If you’re having fatal problems and unable to run apps or even use your system properly then in such terrifying situations, the DISM command in Windows comes off very handy.

This article covers a full guide about the DISM command, how to use it, when to use it, and things you need to be careful about when using this tool.

Where To Use the DISM Command?

The DISM command is already built into Windows. You can run the command from either the Command Prompt or Windows Powershell.

When Should You Use It?

However, before running the DISM command, you should first try the SFC command. Don’t know about the SFC command? No worries. We’ll cover that as well.

What is the SFC Command

System File Checker (SFC) is another built-in tool for Windows to repair missing and corrupted system files. It’s used to scan Windows and restore those files. You can troubleshoot many defections using this command.

Repair System Files With the SFC Command

  • /scannow → Scans and repairs all protected operating system files
  • /verifyonly→ Only scans files and doesn’t repair them
  • /scanfile=file→ Scans and repairs only a specific file

For this tutorial, we’ll use the /scannow option.

First, you need to open the Command Prompt with administrator privilege. Go to search and start typing Command Prompt. Right-click on it and choose Run as administrator. You will get a prompt. Just select Yes so the Command Prompt starts running

DISM. How To Run Deployment Image Servicing and Management

Now type in the following command

Running the sfc /scannow command

It will start scanning your PC for any corrupted files. Usually, it takes a couple of minutes to scan everything so wait a bit.

If everything goes smoothly and it doesn’t find anything fishy, you’ll get the message “Windows Resource Protection did not find any integrity violations.”

If you get a “Windows Resource Protection found corrupt files but was unable to fix some of them” message instead, try using the command in Safe Mode.

Once this command repairs the corrupted files using local images, you can find the log files here.

%windir%/Logs/CBS/CBS.log

Repair System Files With the DISM Command

If the SFC command failed to fix your issues, then it’s time to use the DISM command.

Just like the SFC command, the DISM command also has a few options. These are

You need to use these options in this particular order. We’ll show you how to use each option with the DISM command and what they do.

In order to use the DISM command, you will need to use the Command Prompt again. So following the same steps we showed above, open the Command Prompt with administrative privileges.

CheckHealth Option With The DISM Command

The CheckHealth option helps you find any defect with the Windows image. It doesn’t do any repairs though.

Run the following command to check if you need to make any fixes to the corrupted data.

DISM /Online /Cleanup-Image /CheckHealth

Running /CheckHealth with DISM

ScanHealth Option With The DISM Command

ScanHealth is a more advanced option. With ScanHealth, you can scan the Windows image for any corruption and check whether the image is repairable or not.

Run the following command in the Command Prompt.

DISM /Online /Cleanup-Image /ScanHealth

The full scanning will take some time. So wait for it to finish successfully.

DISM Command – RestoreHealth

Finally, you need to use the RestoreHealth option to repair any kinds of defects in the image. If you want to repair an online image using your own sources (Rather than Windows Update), run the following command

Dism /Online /Cleanup-Image /RestoreHealth

However, if you want to fix an offline image with a mounted image as a repair source, try this command;

Dism /Image:C:\offline /Cleanup-Image /RestoreHealth

If you don’t add any source, the default location of Features on Demand gets used. You can also add LimitAccess to the command so that the Windows Update is not used as the repair source. This is a sample command if you add source and /LimitAccess;

Dism /Online /Cleanup-Image /RestoreHealth /Source:c:\test\mount\Windows /LimitAccess

If you’re a beginner and don’t have much knowledge about all these, we recommend you use the first command among the three.

Running /RestoreHealth with DISM

It may take longer than the previous scans. It may even get stuck at 20% or 40%. Don’t panic as this is normal.

After the process is finished successfully, you’ll get the “The restore operation completed successfully.” message.

You can find the log files here;

%windir%\Logs\DISM\dism.log

Common Problems After /RestoreHealth is used

After using the above command, you may face some problems. Here we highlight two common problems you may face. If you face any other problems, let us know in the Комментарии и мнения владельцев.

“The source file could not be found” problem

  • Step-1: Run the Command Prompt as administrator.
  • Step-2: Type the command DISM /Online /Cleanup-Image /StartComponentCleanup and press ENTER.
  • Step-3: Now type DISM /Online /Cleanup-Image /RestoreHealth and press ENTER.
  • Step-4: Type this command sfc /scannow and press ENTER.
  • Step-5: Restart your PC to see if your problem is solved or not

Error: 4448 problem

This error is caused by a corrupted system file. You can fix this with an in-place system upgrade. You may also want to check for hard disk issues and whether your PC is able to boot successfully.

Error: 87 problem

This problem is mainly caused for two reasons.

  • Not typing the command properly. For example, if someone forgets to add spaces and types DISM/Online/Cleanup-Image/RestoreHealth.
  • If you forgot to run the Command Prompt as administrator.

What to do if DISM doesn’t work?

If your system problems still persist after running the SFC and DISM commands, there are a few ways you can go.

If you have created a restore point previously, then try a System Restore. Chances are that your PC was in good health when you created the restore point.

Alternatively, you can take a backup and try reinstalling Windows again. You won’t lose files such as pictures or documents. However, you will have to reinstall all the programs.

Why Use the DISM Command

Using the DISM command, you can

  • Check for damaged Windows features and system files.
  • Identify and fix many Windows Operating System related bugs and issues (BSOD, application crash, system functions not working).
  • Repair files that System File Checker or Windows Resource Protection found but failed to repair.
  • Restore the system image so you can repair the Windows installation.

FAQ

What is the DISM Command?

Deployment Image Servicing and Management (DISM) is a built-in command-line tool used for servicing and preparing Windows images.

How to use DISM offline repair to fix Windows 10 [2021]

You can use DISM to service a Windows image (.wim) or a virtual hard disk (.vhd or.vhdx).

How do I run the DISM command?

  • Step-1: Go to search. You can use the Window Key S keyboard shortcut.
  • Step-2: Start typing Command Prompt in the search bar.
  • Step-3: Rick-click on Command Prompt and press Run as administrator.
  • Step-4: Type in the DISM command.

Should I run DISM or SFC first?

You should run SFC first. And then DISM if SFC fails to resolve the problem. SFC tool is used for checking missing system files and restoring them from the cache. On the other hand, the DISM command repairs Windows images by getting a replacement from the Windows servers.

What is a DISM cleanup image?

The /Cleanup-Image option is added with the DISM command when it’s run. This is used for fixing defects in Windows images. This is the syntax of how the /Cleanup-Image option is used:

Dism /Online /Cleanup-Image /RestoreHealth

In this tutorial, we’ve covered everything you need to know to use the DISM command so you can fix issues with your Windows PC. If we’ve missed any part or you’re facing any problem while fixing it, let us know in the Комментарии и мнения владельцев.

Dinesh is the founder of Sysprobs and written more than 400 articles. Enthusiast in Microsoft and Cloud technologies with more than 15 years of IT experience.

Author

Kerariel

| Denial of responsibility | Contacts |RSS