DISM (Deployment Image Servicing and Management) is a command tool developed for administrators and experts to scan and repair Windows images, including Windows Recovery Environment, Windows Installation, and Windows PE (WinPE). It is an inbuilt tool in Windows 11 that can check and repair protected system files and component store of Windows images.
If your Windows 11 PC is not working properly, apps not opening, your files are corrupted, stuck on blue screen, etc., you can run DISM tool to fix these issues. In most cases, the System File Checker (SFC scan) tool can fix various issues with your Windows installation due to missing or corrupt system files. However, if the SFC tool cannot handle the problem, you can use DISM to repair system images and files in Windows 11.
Even if your system does not boot, you can repair your system with a series of DISM commands from Windows Recovery Environment. In this guide, we will show you how to use DISM commands to fix various issues in Windows 11.
Run DISM commands to restore corrupted files
DISM first scans your computer for corrupt or missing files associated with different Windows services. After that, it will download the required images and files from the Microsoft server and replace the corrupted files. For this to work, you will need an active internet connection.
To run this tool, you must first launch the command prompt with administrator privileges. Then type the following commands one after the other and press Enter for each command:
ScanHealth : This switch scans your system’s component store for corrupt files and stores the record in C:\Windows\Logs\CBS\CBS.log. But this command does not solve the problems. To search for corrupted files, enter the following command and press Enter :
DISM /Online /Cleanup-image /Scanhealth
DISM is not case sensitive, you can write it however you want (DISM, dism, Dism, etc.).
CheckHealth : After the first command completes the scan, enter this command. The CheckHealth argument checks for corruption in your system files by checking existing error logs. This command will also let you know if the image is healthy, repairable or not repairable: enter the command below to check the health of the image:
DISM /Online /Cleanup-Image /CheckHealth
The verification process will take 10-15 minutes. Once done, you will see one of the following messages:
- No Component Store Corruption Detected – This means that the DISM scan did not find any corruption or errors in system files and there is no need to run the following command.
- Component store is repairable – This means that component store corruption has been detected and can be fixed with the /RestoreHealth argument.
- Component store is not repairable – If you get this, the following DISM command cannot repair Windows component store corruption. You will need to try another troubleshooting method to fix the error, such as restoring Windows from a backup, resetting, or completely reinstalling your Windows.
RestoreHealth : This last argument repairs corrupted files and stores corruption records in C:\Windows\Logs\CBS\CBS.log. To restore the integrity of the system image, type this command:
DISM /Online /Cleanup-Image /RestoreHealth
Then wait for the process to complete, which will take 10-15 minutes depending on the corruption. If the corrupted files are repaired, you will see the message “The restore operation completed successfully.
Do not interrupt the process until it is complete. After the process is completed, restart your PC and see if the issue is resolved or not.
If you would like to view the log files for a more detailed report of the DISM scan and repair, enter the following path in the File Explorer address bar and press Enter:
Or, you open the Run command and type one of the commands to open the log report:
If you see the message “Windows Resource Protection detected corrupt files and successfully restored them.” message, it means DISM has found and fixed the corrupt files. You can then restart your PC and see if the issue is resolved.
Repair Windows Image with PowerShell
You can also use Windows PowerShell to repair Windows Component Store, as the PowerShell version in Windows 11 and DISM commands have a similar cmdlet. To repair the Windows image with PowerShell, follow these steps:
To get started, launch PowerShell with administrative privileges. Search for “PowerShell” in Windows search, right-click on the top result and select “Run as administrator”.
Check the Windows image:
Type the following command and press Enterto check if the Windows Component Store is corrupt:
Repair-WindowsImage -Online –CheckHealth
This command quickly checks if there is any corruption in your system image, but it doesn’t fix anything.
If you see ‘ImageHealthState: Healthy’ on the scan report, it means that no errors were found in the component store.
Analyze the Windows image:
If you see ‘ImageHealthState’ as ‘Repairable’, that means you need to run the command below to scan the image:
Repair-WindowsImage -Online –ScanHealth
The above command doesn’t solve anything, it only finds the corruption and saves the details to the log file (C:\Windows\Logs\DISM\dism.log).
Repair Windows Image:
Once the scan is complete, type the following command in the elevated PowerShell window and press Enter:
Repair-WindowsImage -Online –RestoreHealth
This command checks for corruption and if it finds any, it will fix it automatically.
If you don’t have internet, you can use the ‘Source’ option with ‘install.wim/install.esd’ to restore system components. You can run the DISM command offline from the local Windows image file (install.wim/install.esd). To do this, run the following command:
Repair-WindowsImage -Online -RestoreHealth -Source G:\sources\install.wim:6 -LimitAccess
Where you need to specify Windows version index in .esd/.wim file.
Repair Windows Image using install.esd/.wim Offline Image
If you do not have internet access or DISM is having trouble replacing damaged files, you will need to provide an alternate Windows image using bootable installation media or a Windows 11 ISO file. You can use ‘install.wim’ or ‘install.esd’ file from bootable installation media or mounted Windows 11 ISO file to run DISM offline.
Create Windows 11 Bootable USB or Mount Windows 11 ISO
To get started, you need to download a fresh copy of Windows 11 using the media creation tool. Here’s how to create a bootable Windows USB drive:
Go to the official Windows 11 download page and click the “Download Now” button under the “Create Windows 11 installation media” section.
Then choose a destination folder and click “Save”.
After that, double click on the ‘MediaCreationToolW11.exe’ tool to start the installation. If you see the User Account Control prompt, click “Yes.”
After that, click on the “Accept” button to accept the license terms.
In the next window, click “Next” if you want to continue with the default language (English (United States)) and edition. If you want to change the language and edition, uncheck the “Use options recommended for this PC” option, then select the language and edition from the drop-down menus.
Then choose “USB Drive” to create USB installation media. or, choose ‘ISO file’ if you want to burn the ISO to DVD later or mount the image.
If you choose “ISO file” as the media option, you can save Windows 11 ISO file to your local drive. Then double-click the downloaded ISO file to mount the image.
Select the USB flash drive from the list of drives and click “Next”.
This will create Windows installation media that you can use to run the DISM tool.
Repair Windows 11 recovery image using install.esd/wim
Now you can run the Deployment Image Servicing and Management Tool (DISM) with the alternate source image (install.esd/wim) from the installation media to repair the local image.
Open the command prompt in elevated mode. Then copy-paste the below command and press Enterto repair Windows 11 image.
DISM /Online /Cleanup-Image /RestoreHealth /Source:N:\Sources\install.esd
DISM /Online /Cleanup-Image /RestoreHealth /Source:N:\Sources\install.wim
Here, replace the source drive letter ( N:with the path to the install.esd/install.wim file location) with the ISO mount point or bootable USB drive in File Explorer. If you mounted a bootable USB or image, you can just use their drive letter here.
To limit the use of Windows Updates by DISM, follow these steps:
The install.esd/install.wim file can contain multiple editions in the same image. Thus, you must first determine the index number corresponding to the edition of Windows 11 that you have installed on your computer. To do this, enter the command below:
dism /get-wiminfo /wimfile:N:\sources\install.esd
dism /get-wiminfo /wimfile:N:\sources\install.wim
Now write down the index number of the Windows edition you have installed on your computer.
Now run the command below:
dism /Online /Cleanup-Image /RestoreHealth /Source:wim:<Drive Letter>:\sources\install.wim:<Index Number> /limitaccess
<Drive Letter> and
<Index> with the appropriate values.
DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:N:\Sources\install.esd:6 /LimitAccess
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:N:\Sources\install.wim:6 /LimitAccess
/LimitAccess argument here prevents DISM from contacting Windows Update.
You can also use this command to repair the offline Windows image:
Dism /Image:C:\ /Cleanup-Image /RestoreHealth /Source:N:\Sources\install.esd
N:\Sources\install.esdwith Windows 11 image path and
C:with Windows root directory or system directory.
Using DISM to Install Windows Updates
Windows update service doesn’t always work properly, sometimes it won’t start, gets disabled or crashes on a particular update. Also, Windows update only installs the latest available updates, it does not allow you to install any particular update on your system. In such cases, you can use the built-in DISM to manually install specific Windows 11 updates.
First, visit the Microsoft Update Catalog repository and download the required updates (Critical Updates, Security Updates, and Updates) from the list. If you already know the Microsoft Knowledge Base ID (for example, KB5014019) for the update you want, search for it in the search field in the upper left corner.
Alternatively, you can simply search “Windows 11” in the search box to get the list of all available updates that have been released in the stable version.
Locate the update you want to download from the list and click the corresponding “Download” button.
This will open the download page with download links in a new window. Simply click the link and choose a location on your local drive to save the file. The file type would be either ‘.cab’ or ‘.msu’ depending on the type of update.
Adding a Windows Update package to an image
In the DISM command, you can use the
/Add-Package switch to add a Windows update to the window image. The command syntax is as follows:
Dism /Add-Package /PackagePath:<path_to_cabfile> [/IgnoreCheck] [/PreventPending]
To add an update package to a running Windows installation, use the command below:
Dism /Online /Add-Package /PackagePath="C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab" /LogPath=C:\mount\dism.log
In the above command, replace
C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cabwith the name of the downloaded update file and its location.
To add multiple updates to the Windows installation:
Dism /Online /Add-Package /PackagePath="C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab" /PackagePath="C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5013943-arm64_d5a0aeff704eefab25f8674d8c01e01d476ff0b9.msu" /PackagePath="C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5012678-x64_b6e01cb1801810d1581e29dede0e48f635521e44.cab"/LogPath=C:\mount\dism.log
After installing the updates, you can check if the added packages appear in your system’s package list:
Dism /online /Get-Packages
Remove Windows Updates Using DISM Tool
You can also remove an installed Windows update using the DISM tool from the Command Prompt or Windows Recovery Environment. If you encounter any error or Windows won’t start, you can use this method to remove recently installed updates from Windows 11 PC.
Open the command prompt with administrative privileges. Next, run the command below to display the list of all recently installed packages and updates on your computer:
DISM /Online /get-packages /format:table
In the Package Identity column, find the package name of the update you want to uninstall. You can also confirm the package you want to remove with the installation time and date.
To get more details about the particular package or update, try the command below:
DISM /online /get-packageinfo /packagename:PackageName
DISM /online /get-packageinfo /packagename:Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0
The syntax to remove the update package:
DISM /Online /Remove-Package /PackageName:PackageName
For example, to uninstall the update name ‘Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0’, run the command below:
DISM /Online /Remove-Package /PackageName:Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0
Enable or Disable Windows Features Using DISM
With DISM, you can also enable or disable Windows features offline on a .wim or .vhd (mounted ISO) file, or online on a running operating system. Here’s how:
First, open the command prompt with administrative privileges. Now list all the features available in your Windows 11 with the following command:
DISM /online /Get-Features
In the list of features, locate the features you want to enable or disable.
Once you locate a particular feature, you can get more details about that feature with the
/Get-FeatureInfoswitch. For instance:
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient
Enable Windows 11 Features Using DISM
If you want to enable a specific feature in Windows 11, you can use the Enable-Feature argument:
DISM /online /Enable-Feature /FeatureName:TelnetClient /All
If you want to enable a feature in an offline mounted image, you must specify the mounted directory using the
DISM /Image:D:\Win11OS\offline /Enable-Feature /FeatureName:TelnetClient /All
In the example above, replace
D:\Win11OS\offlinewith the location of the mounted image.
After enabling the feature, you can use ‘Get-FeatureInfo’ to find the status of the feature.
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient
If you specify multiple
/Source options, the DISM uses the files from the first source argument and the other locations are ignored:
Dism /Online /Enable-Feature /FeatureName:TelnetClient /Source:N:\sources\SxS /Source:C:\test\mount\windows /LimitAccess
Disable Windows 11 Features Using DISM
If you want to disable a particular operating system feature, use the following command:
DISM /online /Disable-Feature /FeatureName:TelnetClient
If you want to disable a feature in an offline mounted image, you must specify the mounted directory using the
DISM /Image:D:\Win11OS\offline /Disable-Feature /FeatureName:TelnetClient
In the example above, replace
D:\Win11OS\offlinewith the location of the mounted image.
If you want to remove the specific feature from the Windows installation without having to remove the feature from the image. To do this, enter the command below:
DISM /online /Disable-Feature /FeatureName:TelnetClient /Remove
If you want to remove a feature in an offline mounted image, you must specify the mounted directory using the
DISM /Image:D:\Win11OS\offline /Disable-Feature /FeatureName:TelnetClient /Remove
DISM Failed Error on Windows 11
While running DISM command in Windows 11, you may encounter many issues. Here are some of the most common issues reported by users:
- DISM failed, no operation was performed – This is one of the most common errors you will get when using an
/restorehealthargument. It can be fixed by ruining DISM with Windows 11 ISO file.
- DISM failed 0x8000ffff, 0x800f0954, 0x800f0950, 0x800f0906, 0x800f081f (Source files could not be found. Use the “Source” option to specify the location of files needed to restore functionality.) – This is a other common error you get from DISM operation which is usually caused by no direct internet access or Windows Update service is disabled/failed. In this case, use a bootable USB drive, ISO image, or install.wim (esd) file with the Windows installation image to perform the DISM scan.
- DISM failed while processing command cleanup-image, add-package – This issue can be fixed by cleaning system image components with
/StartComponentCleanupswitch or resetting Windows update service.
- DISM failure while trying to copy boot files – This is a common DISM issue that can be fixed by cleaning the system image component with the
- Dism.exe failed to validate the command line, to load the wim handler – If you are experiencing this issue, it may be resolved by restarting Windows Update Components.
- DISM failed to load provider, unload offline registry, flush file buffers, set windows directory, mount image – These issues can be resolved by checking your antivirus, cleaning the system image component, resetting the Windows Update service, or copying and specifying the correct location of the Install.wim file.
DISM commands not working in Windows 11?
DISM not working and showing above error list on Windows 11 due to several reasons. You can fix most of these issues using the following methods.
Clean up the component store
Most DISM issues are caused by corrupt system image components and can be resolved by scanning and cleaning the system component store. DISM has a set of commands to refresh the DISM tool.
First, you need to parse the component store with
/AnalyzeComponentStore the argument in the DISM argument.
To scan the component store, run the following command:
DiSM /Online /Cleanup-Image /AnalyzeComponentStore
Wait for the process to complete, then you will see something similar to the following information:
- Component store size reported by Windows Explorer: 7.48 GB.
- Actual component size: 7.45 GB
- Date of last cleaning: 2022-06-12: 23:13:57.
- Number of recoverable packages: 0.
- Component store cleaning recommended: yes or no.
If the “Recommended component store cleanup” is “Yes”, you must proceed with the cleanup operation.
To run component cleanup, type the following command:
DISM /Online /Cleanup-Image /StartComponentCleanup
This command will remove any outdated files or previous versions of updated components from the component store.
If the above command does not solve your problem, use the
/ResetBase argument to reset the size of the component store and reduce its size. To do this, use the command below:
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
You can also use
/Deferswitch to postpone or schedule cleaning operations until the next automatic system maintenance.
DiISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase /Defer
To cancel all pending DISM tasks, including Windows Updates, run the following command:
DISM.exe /image:C: /cleanup-image /revertpendingactions
If you are having disk-related issues with the DISM, run the following command in the command prompt in administrator mode:
Since your system is currently using C drive, it will ask you if you want to schedule the scan on the next system restart. Type ‘Y’ and press Enter.
Then restart your PC to run the chkdsk scan.
Reset Windows Update Service
DISM uses the Windows Update service to download and repair or replace corrupt files in the Windows image. If the Windows Update service is not starting or working properly, you can try resetting the Windows Update service.
First, launch the command prompt with administrative privileges. In the command prompt window, type the command below and press Enter.
net stop wuauserv
Wait for the process to complete, then enter the following commands one after the other:
ren Download Download.old
net start wuauserv
net stop bits
net start bits
net stop cryptsvc
ren catroot2 catroot2old
net start cryptsvc
After the commands complete successfully, the Windows Update service will be restarted and the DISM issue will be resolved.
Disable proxy service
If DISM is unable to connect to the internet or fail to run on your system, it may be due to the proxy configuration on your PC. To fix this problem, you need to disable the proxy on your device.
First, open Windows Settings by pressing Win+ Ishortcuts. In the Settings app, navigate to the “Network & Internet” section on the left and click on the “Proxy” option on the right.
On the Proxy Settings page, disable all settings under “Automatic proxy configuration” and “Manual proxy configuration”.
Changing the Remote Procedure Call (RPC) Service Startup Type
If you see a DISM Failed 1726 error, it’s likely because the Remote Procedure Call (RPC) service is disabled or could not start automatically.
Remote Procedure Call (RPC) is an interprocess communication protocol or technique that allows a program to request services from another program located on another computer on a network as if it were a system local. It is responsible for structuring distributed client-server applications.
It is a service control manager for COM (Component Object Model) and DCOM (Distributed Component Object Model) servers. If this communication protocol is disabled, all services and applications that depend on COM and DCOM (like DISM) will not work properly. Here’s how you can change the boot method for RPC and make sure it works correctly:
First, press the Windows+ keys simultaneously Rto launch the Run dialog box. Next, type “services.msc” in the text field and press Enter.
Alternatively, you can simply search for “services” in Windows search and open the top result.
In the Services window, scroll down and find the service named “Remote Procedure Call”. There will be two services named Remote Procedure Call – Remote Procedure Call (RPC) and Remote Procedure Call (RPC) Locator.
Now right click on the ‘Remote Procedure Call (RPC)’ service and select ‘Properties’ or simply double click on it.
Under the General tab of the Properties window, click on the drop-down menu next to the “Startup” type and change it to “Automatic”. Then click on ‘Apply then ‘OK’.
This will automatically start the RPC service when you boot your system and fix DISM error 1726.
Also double-click on the “Remote Procedure Call (RPC) Locater” service and ensure that its startup type is set to “Manual”.
Then restart the computer to apply the changes. If you still have the problem, try the next solution.
Change the value of the RpcSs registry key
If the DISM failed error 1726 is not solved by the above method, you need to modify the RpcSs registry value to fix the problem. Follow these instructions to edit the RpcSc registry key:
Open the Run command box by pressing Win+ simultaneously. RThen type “regedit” and press Enter.If you see the User Account Control (UAC) dialog box, click “Yes”.
Before editing the registry, you can safely back up your registry, so that you can roll back the changes if something goes wrong. To do this, click on the ‘File’ menu and select ‘Export’.
Next, give the backup file a name, choose whether you want to back up the entire registry or the selected branch of the registry (under Export Range), and then select the destination folder. After that, click on the ‘Save’ button.
After backing up the registry, navigate to the following location or copy-paste the path below into the address field:
In the right panel of the “RpcSc” key, double-click the “Start” DWORD to edit it.
Now set the ‘Value data’ from Start to 2 and press ‘OK’ to save the changes.
After that, close the registry editor and restart your PC to apply the changes.
Correct Install.esd file location
If you encounter the message “Cannot find source files” or “The system cannot find the path specified”, it means that the location you specified for the Install.esd file in the Source option is incorrect.
Open the elevated command prompt. Then enter the command below and press Enter :
DISM /Online /Cleanup-Image /RestoreHealth /source:ESD:X:SourcesInstall.esd:2 /LimitAccess
In the above command, be sure to replace
Xwith the drive letter of the mounted ISO file or the drive letter of the bootable USB.
Temporarily Disable Windows Search Service
If you encounter DISM error 87 or Remote Procedure Call Failed error, disabling Windows Search service while running DISM command can help solve the problem. The Windows Search service is a search service that allows you to search for files and applications in the system. Follow these instructions to disable the Windows Search service:
Open the Run command box (press Windows+ R), type “services.msc” and press Enter to open the Services window.
In the Services window, scroll down to the “Windows Search” service, right click on it and select “Properties”. Or you can just right click on it.
Next, under the General tab, change the ‘Startup type’ to ‘Disabled’.
After that, click “Apply” and then “OK”.
This will temporarily stop Windows Search services temporarily. You can disable the service each time the error occurs and then re-enable it after successful execution of DISM commands.
Run DISM command in clean boot mode (offline)
Sometimes a DISM failure occurs due to conflicts of services running in the background. Thus, running DISM commands during a clean boot can avoid these issues. Here is how you can run DISM commands in clean boot mode:
First, open Windows Settings by right-clicking on the Start menu and selecting “Settings”.
In the Settings app, navigate to the “System” tab and click on the “Recovery” option in the right pane.
On the recovery page, click the “Restart now” button on the advanced startup tile under Recovery.
Click the “Restart Now” button again to restart your PC.
Windows will boot your system into Windows Recovery Environment.
If your computer does not start correctly, you go to the settings above. You can use this alternate method to access the Windows Recovery Environment (WinRE).
Use hard reboot
First, turn off your PC or turn off your PC and then press the Power button to turn on the system. And just when Windows starts loading, press and hold the power button to force shut down your PC.
Repeat these steps two or three times and the fourth time let Windows load normally. It will automatically boot into the Windows Recovery Environment (WinRE). When the Automatic Repair screen appears, click on “Advanced options”.
Then select the “Troubleshoot” option from the Choose an option screen.
On the next screen, choose “Advanced Options”.
On the Advanced Options screen, select the “Command Prompt” option.
The command prompt will start with
X:\Windows \System32what is not the Windows install location. You need to know where Windows is installed using the diskpartcommand.
diskpartto manage drives.
list volumeto get a list of all volumes or drives connected to your system. Next, locate the volume or drive where Windows is installed. The Windows drive (which would have a different drive letter instead of C) will have no name or label. Also, you can locate the Windows drive by its size if you already know it. Note the Windows drive letter in this list.
In the screen below, Volum 3 ‘F’ is the Windows drive. Now write down the Windows drive letter which we are going to use to run the DISM commands.
After that type
Next, enter the command below to run DISM clean boot scan:
DISM /image:F:\ /cleanup-image /restorehealth
If you are booting from Windows installation media or have a Windows 11 iso file attached to your computer on a bootable drive, you can use the following DISM command to repair the offline Windows image:
Dism /image:F:\ /Cleanup-Image /RestoreHealth /Source:N:\sources\install.esd
Dism /image:F:\ /Cleanup-Image /RestoreHealth /Source:N:\sources\install.wim
F:is the Windows 11 drive and
N:where is the Windows installation media.
If you do not have enough space on the selected drive, you will need to specify an empty directory on a separate drive to perform the repair operation. To do this, follow these steps:
First, create a folder named “scratch” on this separate drive. You can also use the
mkdir G:\scratchto create the folder.
Next, enter the command below to repair the component store using
Dism /image:F:\ /Cleanup-Image /RestoreHealth /Source:N:\sources\install.esd /ScratchDir:G:\scratch
Here we have specified the location of the working directory using the
/ScratchDirswitch. Wait for the repair operation to complete, then restart your PC.
Copy-paste install.wim /esd (from boot drive to local C: drive)
If the DISM cannot access the install.wim/esd file from the Windows boot drive or installation disk, you can copy the install.wim/esd file to the local C: drive.
First, insert Windows 11 bootable drive or installation disc into your PC. Alternatively, you can also mount the Windows ISO file and create a bootable drive.
Then find the install.esd/wim file in the installation files and copy it Ctrlwith C. It is probably located in the source directory of the installation files.
Then paste the copied files into the ‘local C:’ drive (system drive) by pressing Ctrl+ V. You don’t need to paste the file in a particular folder just inside the C: drive.
After that, open the command prompt with administrative privileges.
Then, enter the command below in the command prompt to repair Windows:
DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:C:\Install.wim:1 /LimitAccess
Disable the read-only option in the installation. esd
Sometimes Install.esd may not work even after copying it to local C drive. In this case, make sure that the Install.esd or Install.wim file is not in read-only mode. Here’s how:
In File Explorer, navigate to the Install.esd file on your system. Then right click on the file and select “Properties”.
Next, uncheck the “Read-only” option next to Attributes, click “Apply,” then click “OK.”
Repair Windows Image Using Cleanup-MountPoints Argument
Sometimes while modifying Windows image with DISM, the image may get corrupted. It can be easily fixed by cleaning up the mount points in your image.
option with DISM as shown below: