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.

DISM Error 50: DISM does not support servicing Windows PE with the /Online option

 

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

1. Inside the WinRE command prompt window, get a list of all available drives, by giving this command:

  • wmic logicaldisk get name

wmic logicaldisk get name

 

2. Then find out which drive contains the "Windows" folder, by typing this command: *

  • dir drive-letter:

* 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.]

fix dism error 50,

 

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

  • dism.exe /Image:D:\ /Cleanup-Image /Restorehealth

* Note: Where D = the Windows drive. (Change it according your situation)

dism error 50 fix

 

 

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

  • SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows

* Note: Where D = the Windows drive. (Change it according your situation)

sfc /scannow offline

 

5. When the operation is completed, reboot your computer.

Did it work for you?

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 in our effort to continue fighting spam while keeping this site free: