Questions tagged [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. DISM can be used to service a Windows image (.wim) or a virtual hard disk (.vhd or .vhdx).

Filter by
Sorted by
Tagged with
15 votes
1 answer
6k views

What is the purpose of the DISM /RestoreHealth parameter and SFC?

What is the purpose of the DISM /RestoreHealth parameter and the SFC /ScanNow parameter? How do they correlate to one another? In what order should they be run? Why does the order sequence matter ...
0 votes
2 answers
62 views

PowerShell equivalent to DISM's /Cleanup-Image in Windows 10

What is the PowerShell equivalent to DISM's /Cleanup-Image in this command: DISM /Image:%mounted_image% /Cleanup-Image /StartComponentCleanup /Resetbase /ScratchDir:%scratch_dir% Within Use DISM in ...
0 votes
1 answer
59 views

Unable to install .net 4.8 runtime or any updates

Updates always fail on my 2016 server standard vm. When attempting to install .net 4.8 runtime i received the error the component store has been corrupted. I have attempted DISM /ONLINE /CLEANUP-IMAGE ...
0 votes
0 answers
23 views

Why does the DISM command report the error 3 times if its run with all caps?

I'm trying to install a driver manually using its .cab file on windows. But I'm having an issue where dism is saying that it can't find the file even-though its clearly there. DISM /Online /Add-...
2 votes
2 answers
52 views

DISM /Cleanup-Image actual documentation

Where is actually DISM /Cleanup-Image documented? DISM /Cleanup-Image is mentioned in different pages e.g. https://learn.microsoft.com/de-de/windows-hardware/manufacture/desktop/repair-a-windows-image?...
1 vote
1 answer
21k views

DISM: The system cannot find the file specified

Trying to mount a wim image to add drivers. I keep getting the following error: PS C:\Users\Administrator> DISM /MOUNT-WIM /WIMFILE:C:\RemoteInstall\Boot\x64\Images\boot-(4).wim /INDEX:1 /...
12 votes
2 answers
17k views

What is the most efficient, native way to image a Windows partition?

What is the most efficient, native way to image a Windows partition? Is the native method generally the best method for most users? How does the native method differ from conventional cloning? What ...
0 votes
1 answer
3k views

Pinned apps on taskbar are missing until repinning or restarting Explorer

My Dell Inspiron 5558 has been updated to Windows 10 Creators Update. Few days after updating, pinned apps on the taskbar disappeared. I have been trying fixing this weird behavior by doing some ...
0 votes
0 answers
18 views

Unable to get Win 7 on a Dell 5820 precision with Power ISO

Hello we have legacy applications that must be installed on Windows 7 but as the Dell 5820 has NVME drives the operating system cannot see it just after we get to the language selection screen. I have ...
0 votes
1 answer
1k views

How to create a Windows setup usb/iso but ignore specific hardware component or driver

A common issue I find online is people with the "DRIVER PNP WATCHDOG" bluescreen during the setup of windows from say a bootable ISO created with the Microsoft iso tool or with Rufus. ...
1 vote
1 answer
5k views

How to install simplified Chinese IME basic input features offline on Windows 11?

I want to add Chinese Pinyin IME on my Windows 11 PC, which requires addition package "Basic Input" to be installed. However my computer cannot install optional feature, language pack, ...
0 votes
1 answer
43 views

Can Command Prompt or PowerShell DISM Tool Even Access GPT Disks? Or It's Just for MBR?

Hi Superuser friends. Even as an Admin, using the hidden Windows 11 Pro (build 22H2) Administrator account where all things are elevated, when I try to repair an internal SSD drive using DISM that's ...
-4 votes
1 answer
64 views

I am trying to deploy a Windows 7 install.wim file with dism, but it says that the apply-image option is unknown. Why?

I am trying to deploy a Windows 7 install.wim file, but it fails because it says that the apply-image option is unknown. I am in a Windows 10 22H2 PE and I have tried different ISOs, but it keeps ...
0 votes
1 answer
4k views

Does DISM CheckHealth need either internet or Windows ISO to give an accurate result?

Using an elevated command prompt, on a PC without an internet connection or a downloaded Windows 10 ISO, I entered: Dism /Online /Cleanup-Image /CheckHealth It takes a few seconds, with the result: ...
1 vote
1 answer
534 views

Running DISM offline repair from Win PE for Windows 10.0.19043.985 (amd64)

I have a Windows 10 machine that does not boot into Windows, not even Safe Mode, after a reboot following a Windows Update and which none of the standard Windows repair options, or SFC /SCANNOW, are ...
2 votes
1 answer
4k views

Windows 8.1 missing WinRE.wim in WinPE

I'm trying to pull a Windows 8.1 .wim file down to a laptop (the same laptop that was the source of the .wim), and am following these directions from MS. Everything works until "W:\Windows\System32\...
2 votes
1 answer
364 views

How can I fix this error in the DISM log file?

I want to repair a corrupted Windows installed on a hard disk through another PC.The wim file that I use as a source for repair was extracted from another wim file that contains several versions of ...
2 votes
1 answer
12k views

Dism error 87 "cleanup-image option is unknown"

Im in winPE trying to use: dism /image:d:\ /cleanup-image /restorehealth /source:d:\temp on an offline image but cannot get past this error: "Dism error 87 “cleanup-image option is unknown”. I ...
3 votes
1 answer
10k views

sfc /scannow: What does "Duplicate ownership for directory" mean and how do I fix it?

I'm running WIndows 10 version 1709 (OS Build 16299.248). When I run sfc /scannow, it results in: Windows Resource Protection found corrupt files but was unable to fix some of them. Details are ...
0 votes
1 answer
5k views

Clone disk from cmd

Is there a way to clone a disk from the command prompt? I know about programs like Minitool Partition Wizard which can easily perform a clone from within Windows itself, but at the moment I only have ...
1 vote
2 answers
74 views

How can I fix issues in Windows 11 without uninstalling programs when SFC and DISM fail

Disclosure: My system does not meet the requirements for Windows 11 and was installed by bypassing requirements. I have been experiencing numerous problems with my system including failed Windows Apps,...
1 vote
3 answers
8k views

How to modify a WinPE iso to also have the ability to install Windows from the WinPE

I want to use an existing WinPE.wim to troubleshoot problems and run Windows' install's setup.exe, with a desktop shortcut linking to it. Is this as simple as adding a desktop shortcut to folders ...
2 votes
1 answer
143 views

How to identify unrepaired corrupted files through the log created by dism?

If by running the command " Dism /image:C:\ /Cleanup-Image /RestoreHealth /Source:D:\install.wim /LimitAccess ", dism fails to repair some system files, does it create a log and mention them ...
0 votes
1 answer
261 views

WinRE not enabled after applying newly generated .WIM file

I am trying to generate an reference image of Windows 10 pro. Everything works fine but the recovery tools are not enabled by default in the OOBE after applying the image despite the recovery tools ...
0 votes
0 answers
29 views

For doing a fresh installation of Windows 10, what's the difference between using Windows Setup and Dism /Apply-Image?

I'm trying to do a fresh installation of Windows 10 on a PC with no network connection. The problem is, Microsoft decided to remove the time zone option from OOBE since Windows 10 (WHY?) and I don't ...
1 vote
2 answers
120 views

Mounting a Windows 10 Base Filesystem as Read-Only?

I'm trying to create a Windows volume where the base image is mounted as read-only to prevent corruption after a sudden power loss. Here is what I've attempted so far: I've created a VHD file from the ...
1 vote
0 answers
77 views

I added a Windows feature and now I can't boot into Windows, how can I remove or disable the feature now?

I have a Minisforum HM80 mini PC (may be relevant) running Windows 11 that serves as an in-kitchen PC for simple tasks, from web browsing, to watching videos, and playing light games. I saw a tutorial ...
0 votes
1 answer
400 views

How can I repair Windows 10 corrupted files while the DISM command doesn't work?

Recently My Windows 10 run into various blue screen error and I tried to fix them somehow and after restarting the machine many times and playing with machine Boot options it finally revived. But now ...
5 votes
4 answers
55k views

Force DISM to unmount/delete a mounted Windows WIM

I use DISM to customize and update images that I deploy to our computers. I do this on an external drive because its really heavy on I/O. A while ago I appear to have left the image mounted in my F ...
0 votes
1 answer
108 views

DISM error 87, "The destination folder or file... does not exist". But, it does

I'm trying to create a simple batch script to backup my drivers on any Windows PC. If I enter my script line-by-line in cmd it works fine, but when I run it as a batch script it gives me an error &...
0 votes
0 answers
111 views

Dism wim export and split different hashes

I have a rather weird question. I am in the process of creating bootable media/ images and I noticed every time I split a .wim into smaller .swm files the file hashes change for the .swm file every ...
-1 votes
2 answers
5k views

How do you reduce the size of a windows 7 offline image after you removed the old 3rd party drivers via DISM?

As the title says I had a Windows offline image that needed a driver package put on it from a CAB file I extracted the CAB file and used DISM to install all the drivers from it recursively. Some time ...
2 votes
3 answers
2k views

WinSxS filling so fast that DISM cleanup cannot operate

I have a Windows 10 machine that is seeing the WinSxS folder fill up so quickly that DISM cannot run, and c: shows 0 bytes free. The machine also has a D: with 30 GB+ free space, so I have tried ...
2 votes
0 answers
7k views

How to stop Dism.exe /online /Cleanup-Image /StartComponentCleanup?

I have a Windows Server 2026 that executes Dism.exe /online /Cleanup-Image /StartComponentCleanup now for more than one day. This task is executed by TiWorker.exe. I read that it is not save to ...
1 vote
0 answers
217 views

When mounting a WIM file, does the performance of the disk containing the mountpoint matter?

Let's say I am mounting a WIM image on Windows using dism: dism /Mount-Image /ImageFile:D:\work\sources\install.wim /Index:1 /MountDir:E:\work.tmp Here, D:\work is the "source" directory (...
2 votes
1 answer
625 views

Windows 10 1709 Won't Upgrade / DISM Errors

I am trying to install a more current version of Windows 10 but everything I have tried has failed. I don't know if problems with sfc /scannow and DISM are related but the latter is also problematic. ...
0 votes
1 answer
2k views

After applying WIM image using Dism, Windows doesn't work correctly

I have a freshly installed Windows 11 that isn't experiencing any errors or problems. All of my applications are working just fine. I would like to move this installation to a different hard disk. For ...
0 votes
1 answer
653 views

Add software to Macrium Reflect Windows PE rescue media

I have created a WinPE 10 rescue medium on a flash drive and would like to add additional software (PortableApps, Veracrypt, Sysinternals tools) and drivers. When I just copy the portable executables ...
1 vote
1 answer
2k views

Windows Dism.exe /RestoreHealth /LimitAccess, no /Source, Where is the Features on Demand location and should I use it?

Regarding the command Dism.exe /Online /Cleanup-Image /RestoreHealth /LimitAccess Normally /RestoreHealth is used without /LimitAccess, which makes Dism use Windows Update to compare against the ...
1 vote
1 answer
678 views

How to manually add a program to the list of windows optional features so that it can be turned on or off?

The C:\Windows\System32\OptionalFeatures.exe program allows to Turn windows features on or off by checking or clearing the checkboxes from the shown list. For educational/learning purposes, how can a ...
1 vote
0 answers
1k views

How to force install a windows optional feature which was completely deleted and is absent from the Dism /online /Get-Features?

The original Windows 11 installer ISO was modified to work in a constrained resources settings and thus had completely removed the trace of most of the Windows' components, packages, or features to ...
0 votes
1 answer
6k views

How do I fix this file that SFC flags as corrupted if using a copy straight from a brand-new ISO doesn’t work?

I recently set up a new Windows 10 PC (then v20H2), and whilst customizing it, I replaced the default “new email” sound (C:\Windows\Media\Windows Notify Email.wav) with the Win8.1 version, which I ...
0 votes
1 answer
335 views

Windows 11 - C:\Windows is a file not a directory of size 0 B. DISM tool try repair and other methods

C:\Windows is a file of size 0 B. What is happening in the system: Explorer.exe Location is not available. C:\ not available. Access denied. WinAnotherOS:\Users\user01>C: Access denied ...
1 vote
0 answers
428 views

Can't enable Virtual Machine Platform for WSL using DISM

I try to turn virtual machine by "turn windows feature on or off" but an error occurs: Error code: 0x80070490 Then, to enable WSL 2, I also try to run dism.exe /online /enable-feature /...
1 vote
1 answer
948 views

Can't enable Virtual Machine Platform for WSL using DISM [closed]

To enable WSL 2, I try to run dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart, but an error occurs: Error: 1168 Element not found. this is my dism.log file: ...
0 votes
1 answer
553 views

Hacking a Windows 11 Installation Setup

During Windows 11 installation: Obviously install.wim's only image inside is extracted in this "Copying Windows files" stage. Now, this install.wim, I wish to replace with my own WIM file ...
1 vote
0 answers
221 views

How to get the KB Article number from a cumulative rollup without having to search for it

This is very different from similar questions I have read on this site. The problem I have, screenshot provided, is the cumulative update only says "rollup". There is no KB number and I have ...
1 vote
0 answers
312 views

dism for a subset of Hyper V features only

Environment: Mix of Windows 10 and Windows 11 Trying to use dism to enable Hyper V Hypervisor only. Tried: dism /Online /Enable-Feature /FeatureName:Microsoft-Hyper-V-Hypervisor Complains of need to ...
0 votes
0 answers
42 views

Appending more images to install.wim. Would it be applied as well?

I'm appending an image of another drive, D:, to install.wim (an install.wim that already contains a slightly customized Windows). The additional image of D: is of course at index 2. When I run the OS ...
5 votes
2 answers
41k views

dism.exe error on driver .cab installation

I'm trying to install .cab file on Windows 8.1. The file contains a driver and was downloaded from the Microsoft Update Catalog. File's path is e:\audio.cab and I use the following command (in ...

1
2 3 4 5