Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Are you wondering why you received the error message “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online Option”?

In this guide, I’ll explain why and how you can run DISM in Windows 10 recovery console and avoid this error message.

How To Fix Error: 50 - DISM Does Not Support Servicing Windows PE With The /Online Option

You receive this error message because you’re trying to run DISM with the /Online option from Windows 10 recovery console. You can only run the DISM command with the /Online option from a running Windows Operating System.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

So, when you run the command from the Windows 10 (or any Windows) recovery console, the command fails because the Operating System is not running at the recovery console.

In this guide, I will show you two methods to fix this error message and run DISM successfully. The first method shows you the steps to fix this error message without needing a Windows 10 installation media.

However, in the second method, I’ll show you the steps to fix this problem using Windows 10 installation media.

Please apply the solutions in the order discussed. The first method will definitely eliminate DISM error 50, but it may not fix the Windows problem you’re trying to fix by running the DISM command.
If, after following the steps in method 1, the problem with your Windows PC is still not fixed, follow the steps in method 2.

I have also included an FAQ section where I answer questions most people ask about this DISM error.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Option 1: Fix DISM Error 50 without a Windows Installation Media

Follow the steps in this section to fix “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online”. As I mentioned earlier, this method will fix the error message but may not fix the Windows problem.

  1. Boot Windows 10 to the recovery console. When your PC displays the screen below, proceed to step 2 below.
  1. Click “See advanced options”, then navigate to “Troubleshoot -> Advanced options -> Command Prompt.”
When you click Command Prompt, Windows may require you to enter the password for the local Administrator account. If you see a window like the one shown below, click the administrator account. Then, enter the password to the administrator account and click “Continue” – see the screenshots below.
How To Fix "Error: 50 - DISM Does Not Support Servicing Windows PE With The /Online Option" Without An Installation Media
  1. When Command Prompt opens, type the command below into the CMD console. Then, to run it, press the enter key on your keyboard.

The command creates a folder called “Scratch”. You’ll need the folder in the next step.

mkdir c:\Scratch
  1. Then, run the DISM command below.
This is the same DISM command, but instead of using the /Online option, I am using the /Image option. I also included one more option – /ScratchDir. This is optional but may help improve the performance of the DISM command.
DISM /Image:c:\ /Cleanup-Image /Restorehealth /ScratchDir:c:\Scratch 

As you can see from the screenshot below, the command ran successfully without displaying “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online”.

However, this DISM command may not repair your Windows PC.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. When the command completes, close Command Prompt, then click “Continue” to start your Windows normally.

After restarting your Windows, if the error is fixed, you do not need to try the second (and longer!) method below. However, if the reason you ran the DISM command is not fixed, try the second method below.

Option 2: Fix DISM Error 50 with a Windows Installation Media

This method is similar to the last method with one difference. In the last method, you did not require a Windows installation media.

However, in this method, you need to insert a Windows USB installation media into your computer.

So, why does DISM need a Windows installation media?

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Essentially, the “DISM /Image:c:\ /Cleanup-Image /Restorehealth” command repairs your Windows installation.

If your computer was connected to the internet, DISM downloads the required Windows files to fix your computer.

However, because you’re running DISM from the Windows recovery console, DISM does not have access to the interment and so cannot download any files.

This is why we need to provide the Windows installation media to DISM so it can pick up any files it needs to repair your Windows installation from there.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Follow the steps below to Fix “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online Option” usingh a Windows installation media.

Also popular on Amazon
Ralix Reinstall USB Compatible with Windows 10 All Versions 32/64 bit. Recover, Restore, Repair Boot USB, and Install to Factory Default Will Fix PC Easy!
  • Comprehensive Solution: This Windows 10 reinstall DVD provides a complete solution for resolving various system issues, including crashes, malware infections, boot failures, and performance slowdowns. Repair, Recover, Restore, and Reinstall any version of Windows.
  • USB will work on any type of computer (make or model). Creates a new copy of Windows! DOES NOT INCLUDE product key.
  • Windows not starting up? NT Loader missing? Repair Windows Boot Manager (BOOTMGR), NTLDR, and so much more with this DVD. Clean Installation: Allows you to perform a fresh installation of Windows 11 64-bit, effectively wiping the system and starting from a clean slate.
  • Step by Step instructions on how to fix Windows 10 issues. Whether it be broken, viruses, running slow, or corrupted our disc will serve you well
  • Please remember that this DVD does not come with a KEY CODE. You will need to obtain a Windows Key Code in order to use the reinstall option
  1. Insert a Windows 10 (or the relevant Windows) installation USB into your computer.
  2. Then, Boot Windows 10 to the recovery console. When your Windows PC displays the screen below, proceed to the second step below.
  1. Click “See advanced options”, then navigate to “Troubleshoot -> Advanced options -> Command Prompt.”
  2. When you click Command Prompt, Windows recovery console will require you to enter the password for the local “Administrator” account.
  3. Click on the name of the local administrator account, then enter the password and click “Continue”.
  4. When command prompt opens, run the commands below to create two folders –
mkdir c:\WinInstall
mkdir c:\Scratch
If you created the Scratch folder when you followed the steps in the first method of this guide, do not run the second command.
In step seven below, you’ll determine the drive your Windows installation USB drive is mounted
  1. Then, to determine whether Windows mounted the installation USB in drive D:, type the command below and press the enter key on your keyboard.
D:

If drive D exists on your computer, the command prompt will change directory to drive D:

How To Fix "Error: 50 - DISM Does Not Support Servicing Windows PE With The /Online Option" With A Windows Installation Media
If drive D does not exist, the command prompt will not change to the drive. Try running E:. But, if the drive exists, proceed to step 8 below.
  1. To check if drive D is where your Windows installation media is mounted, enter the command below. Then, to run the command, press the enter key on your keyboard.
DIR

If drive D is where your Windows USB installation media is mounted, the above command will show a folder called “sources”.

  1. Next, change directory to the “sources” folder.
CD sources
  1. Finally, run the command below to display all the Operating System versions on the Windows USB installation media.
dism /Get-WimInfo /WimFile:install.esd
  1. Note the index number of the version of Windows you have on your PC. In this example, my Windows PC is a Pro version.

So, I’ll note the index number, which is 6.

  1. Next, type the comand below to extract Install.WIM from Install.ESD. To run the command, press the enter key on your keyboard.
Dism /Export-Image /SourceImageFile:install.esd /SourceIndex:6 /DestinationImageFile:c:\WinInstall\install.wim /Compress:max /CheckIntegrity
The above command will save the install.WIM file in the c:\WinInstall folder you created in step 6.
  1. Finally, to fix “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online Option” with a windows installation media, type the following command into command prompt. Then, to run the command, press the enter key on your keyboard.
Dism /Image:C:\ /Cleanup-Image /RestoreHealth /Source:C:\WinInstall /ScratchDir:c:\Scratch
If you followed the steps in the first method in this guide, you’ll notice that this command is similar to the command you ran in step 3 of that first method. The only difference is that this command now includes “/Source:C:\WinInstall”. As I explained earlier in this section, DISM will pick up files its needs to fix Windows 10 from this location.
  1. When the command completes successfully, close command prompt. Then, on the Choose an option screen, click “Continue”.

Your computer will start normally and the DISM comand would have fixed the problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Frequently Asked Question

1. How do you fix “DISM does not support servicing Windows PE with the online option?

To fix DISM error 50, change the /Online option to /Image:c:\.

So, instead of running this command:

DISM.exe /Online /Cleanup-Image /Restorehealth

You should run:

DISM /Image:c:\ /Cleanup-Image /Restorehealth

2. Can I run DISM in Safe Mode?

Yes, you should be able to run most, if not all DISM commands in Windows safe mode.

3. How can I use DISM offline?

If you want to use DISM to service an offline Windows image, specify the /Image option. Then, speficy the path to the offline WIM, VHD, or VHDX windows image file.

Here is a sample command:

DISM /Image:c:\WinInstall\install.wim /Cleanup-Image /Restorehealth

4. Should I run DISM or SFC first?

I don’t believe the order you run DISM and SFC commands matter. However, most times, I run DISM first.

Then, when the DISM command completes, I will run the SFC /scannow command.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
5. What is DISM /online?

If you run the DISM command with the /Online parameter, DISM services the running operating system you’re running the command.

This is contrary to using the /Image parameter to service an offline Windows WIM, VHD or VHDX image.

Conclusion

The DISM Operating System image servicing offers two command switch options. Specifically, you can either run DISM with the /Online or the /Image switch.

If you want to service the running operating system, use the /Online switch. However, if you want to service an offline Windows image (WIM, VHD or VHDX), use the /Image switch.

Based on this knowledge, when you run the DISM /Online command from Windows recovery console (effectively in a WinPE environment), DISM returns an error.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The error message informs you that you cannot run DISM with the /Online option in a WinPE environment.

This guide showed you two ways you can fix “Error: 50 – DISM Does Not Support Servicing Windows PE With The /Online Option”.

I hope you were able to fix this error and successfully run your DISM command. If you did find the guide helpful, would you mind sparing two minutes to share your experience by responding to the “Was this page helpful?” question below.

Finally, you may also find more of our Windows Command Prompt guides helpful.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.