Troubled by “DISM does not support servicing Windows PE” Error
“When I try to run the following command from the recovery environment command prompt: dism.exe /image:C: /cleanup-image /revertpendingactions, I only get an error message: Error 50: DISM does not support servicing Windows PE with the /Online option. Can anyone tell me how to solve this problem when the operating system crashes?”
DISM, an abbreviation for Deployment Image Servicing and Management, is a command line tool that can be used to service a Windows image (.wim) or a virtual hard disk (.vhd or .vhdx). It can be used for Windows PE (Windows Preinstallation Environment), Windows RE (Windows Recovery Environment) and Windows Setup. Among them, Windows PE is an independent pre-installation environment and is a component of other installation and recovery technologies, such as Windows Setup, Windows DS (Windows Deployment Services), Windows RE, etc.
Normally, DISM checks the integrity of the operating system and repairs damaged or modified system files. But just like the dilemma encountered by the user above, errors may occur during the use of DISM, which will seriously affect the user experience. You must try to fix it as soon as possible. Below we will provide you with repair solutions for the above error message. But before starting, it is recommended to understand the cause of the error, so that we can better fix it.
Why Does the “DISM does not support servicing Windows PE” Error Occur?
DISM is usually used to repair errors such as system crashes, but some users will receive the error message: Error 50, DISM does not support servicing Windows PE with the / Online option when running the following commands:
The reasons for this error are: DISM tool thinks that you are not running commands on Windows system, but running commands on Windows PE. Continue to dig deeper, and you will find that this is caused by the wrong placement of the registry key. If you want to fix this error, you can try the following 5 solutions.
How to Fix the Error of “DISM Does not support Windows PE”
Next, I will provide you with 5 different repair solutions to ensure that your computer can return to normal.
Solution 1. Refresh DISM
When you encounter an error like “DISM does not support servicing Windows PE”, you should first try to refresh the DISM tool, which can help you solve various minor software-related problems to fix the error.
- Press Win + R keys together to open the Run dialog. Type cmd and press Ctrl+ Shift+ Enter together to run the Command Prompt as an administrator.
- Type the following command: dism.exe /image:C: /cleanup-image /revertpendingactions, and then press Enter to execute this command.
- Type msconfig in the run dialog box and press Enter to start System Configuration.
- Switch to the Boot tab at the top of the opened window, check the Safe boot option and select Minimal. Then click on OK to save changes and exit. After restarting the computer, you will enter Safe Mode.
- In safe mode, refer to the above method to start the Command Prompt as an administrator, enter sfc /scannow and press Enter, and wait patiently for the command to complete.
Solution 2. Delete the Related Windows PE Registry Key
Misplacement of the Registry Key is the direct cause of Windows 10 “DISM does not support servicing Windows PE” error. Therefore, if you want to fix the error, you need to delete the associated registry key.
- Type regedit in the Run dialog and press Enter to run Registry Editor.
- Navigate to the following path. Find and right-click the MiniNT folder in the left window, and select Permissions from the drop-down menu.
- Find and click your UserName under the Group or user names list, check the Allow box next to the Full Control option, and then click OK.
- At this point, you can choose to delete the MiniNT folder and restart the computer.
Solution 3. Use the Command Prompt
When you run the Dism /Online /Cleanup-Image /RestoreHealth command, you may also receive the error message that DISM does not support Windows PE. The reason is that there are problems with the operating system of the /RestoreHealth parameter, and you need to fix them. In order to solve this error, you can execute some commands in the Command Prompt to solve this problem.
- Start the computer from the Windows 10 installation media and use the Shift + F10 key combination on the first installation screen to open the Command Prompt. In the Windows RE Command Prompt window, enter: wmic logicaldisk get name command to get a list of all available system partitions.
- Type dir drive-letter: to find the system partition that contains the Windows folder (replace drive-letter with your system drive letter).
- After finding the system partition containing the Windows folder, enter the dism.exe /Image: D:\ /Cleanup-Image /Restorehealth command to repair the offline Windows image.
- If you receive the error message "Error 0x800f081f" during this step, it means that you must perform a repair upgrade (if no errors are encountered, skip to step 6).
- Before performing the repair and upgrade, please boot from the Windows installation disk. Click Next in the Windows installation wizard window, and then follow the prompts to successfully perform the repair and upgrade to repair the "Error 0x800f081f" error message. After completion, restart the Windows system in Safe Mode, open the Command Prompt again, and enter the DISM /Online /Cleanup-Image /RestoreHealth command.
- Enter the SFC /SCANNOW /OFFBOOTDIR=D:\ /OFFWINDIR=D:\Windows command in the Command Prompt to complete the repair. Remember to replace D with the drive letter of the system partition containing the Windows folder.
Solution 4. Reset BIOS
BIOS (Basic Input/Output System) is responsible for managing the data flow between the operating system and external devices such as hard disks. Resetting the BIOS can restart the output/input system to the last saved configuration, which helps to fix the “DISM does not support servicing Windows PE” error.
- Use the key set by your computer motherboard manufacturer to enter the BIOS, which could be F10, F2, F12, F1, or DEL.
- Select the Exit item, and click the Load Optimized Defaults option. Confirm to save the changes and restart your computer after the reset is complete.
Solution 5. Create Another User Account
In most cases, the “DISM does not support servicing Windows PE” error message is related to a specific user account. To do this, you can create another user account and log in to your computer to avoid this error.
- Enter User Accounts in the search box next to the Start menu in the taskbar and open the corresponding settings. Then click the Manage another account option at the top of the right window.
- On the Manage Account page, click Add a new user in PC settings below.
- Select Add someone else to this PC under the category of other users.
- Click Users in the left window and select the account described as User account managed by the system. Then click More Actions in the right window, and click New User in the menu.
- Fill in the User name in the pop-up window, then fill in Password and Confirm password. Next, click Create in the lower right corner to create another user account, and then log the account into your computer.
If none of the above 5 solutions can help you solve the problem of "DISM does not support servicing Windows PE" when the system crashes, and you have backed up the system with AOMEI Backupper Standard before the system has problems, then you can restore Windows 10 system to a normal state to solve system problems.
Another Solution to Repair System Crash—AOMEI Backupper Standard
AOMEI Backupper Standard is a powerful backup and recovery tool, suitable for Windows 11/10/8.1/8/7/Vista/XP and other systems. You can download it for FREE, and there is no need to register an account to use it. It can help you repair a crashed system and restore it to a normal state, thereby protecting the security of your data.
If the computer cannot start or has crashed, you can create a Windows PE bootable disk on another healthy computer. Then go to the computer with the system crashed and perform a system restore from the Windows PE bootable disk to solve the problem.
Create Windows PE Bootable Media
If you want to restore the system on Windows PE, please make sure you have a system backup and a Windows PE bootable disk. First, we need to do some preparatory work:
Step 1. Click Tools tab on the left, and select Create Bootable Media in the right window.
Step 2. Then choose the type of bootable disc. Select Windows PE in the window, and then click Next (select Windows PE or Linux according to your computer system, if your computer is Windows 7 and Windows 8, you need to download AIK or ADK).
Step 3. Specify the storage media, including USB, CD/DVD disc or ISO Image File, and then click Next to create a bootable media.
Recover the System from the Windows PE Bootable Media
Step 1. Insert the bootable media into the crashed computer and boot from it (you may need to change the boot order and boot mode in the BIOS). After the computer starts successfully, AOMEI Backupper (installed on the bootable device) will run automatically.
Step 2. Click Restore tab on the left and click Select Task to find the system backup you created.
Step 3. Select Restore this system backup and click Next.
Step 4. Confirm the operation and click Start Restore and wait for the system to be restored.
Step 5. Remove the bootable media and restart the PC (you may still need to change the boot order and boot mode in the BIOS).
To Sum Up
If you are struggling with “DISM does not support servicing Windows PE” error, you can try the 5 solutions mentioned in the article in turn to ensure that your computer can return to normal. If the above 5 methods failed to help you solve the problem, then it is recommended to use AOMEI Backupper Standard to restore the system.
AOMEI Backupper Standard can be used for free without registration, and the operation is simple. If you have used the software to back up the system before the error occurs, you can directly restore the system to the point in time of the previous backup to skip repairing the error that DISM does not support Windows PE.
In addition, the software also provides you with functions such as regular automatic backup systems, file backups, disk wiping, etc., to provide all-round protection for your computer data.