Learn how you can use the DISM command line tool to resolve most problems on the Windows 11 PC.
The DISM (Deployment Imaging Servicing and Management) is a command-line tool designed for experts and administrators to repair and scan Windows images, including Windows Recovery Environment, Windows Setup, as well as Windows PE (WinPE). It is an integrated tool in Windows 11 that allows you to check and repair system files that are protected and the component store of Windows images.
If you find that your Windows 11 PC is not functioning properly, applications aren’t opening, your files became damaged and stuck on a blue screen and so on, you should use the DISM tool to solve the issues. Most of the time, System File Checker (SFC scan) tool will fix a variety of problems with your Windows installation due to corrupted or missing system files. If the SFC tool isn’t able to resolve the issue, you may make use of DISM to fix the system and images in Windows 11.
If your system is unable to start, you can fix your system using a sequence of DISM commands that are part of Windows Recovery Environment. Windows Recovery Environment. In this tutorial we will demonstrate how to apply DISM Commands to fix various issues in Windows 11.
Table of Contents
Run DISM Commands to Restore Corrupted Files
DISM first checks your computer for missing or corrupted files that are associated with various Windows services. Then it downloads the necessary images and files via the Microsoft server and then replace the corrupted files. To make this work you’ll need an internet connection that is active.
To use this program you must launch Command Prompt with administrative privileges. After that, type the following commands one after another and hit Enter to execute each one:
ScanHealth: This switch scans your system’s component store for corrupted files and stores the record in the C:WindowsLogsCBSCBS.log. However, this option does not solve the issue. To check for corruption in files Enter the following command, then enter:
DISM /Online /Cleanup-image /Scanhealth
Dism is not case-sensitive, you can use it however you like (DISM dism, dism and so on. ).
CheckHealth When the first command completes the scan, you can enter this command. The CheckHealth option determines if problems have been found within your system’s files by examining the error logs. This command also lets you know if the image is repairable, healthy, or not repairable. Enter the following command to determine the health of the image:
DISM /Online /Cleanup-Image /CheckHealth
The process of checking up can take between 10 and 15 minutes to be completed. After the process is completed you’ll see some of these messages.
- No corruption of the component store discovered This means that the DISM scan didn’t find any errors or corruptions in the system’s files, and there is no need to run the next command.
- Component store can be repaired This means that a Component Store corruption has been identified and is fixable with the RestoreHealth argument.
- Component store cannot be repaired If you encounter this error, the DISM command will not repair this issue. Windows Component Store corruption. You’ll need to look for another method of troubleshooting to resolve the issue, such as the process of restoring Windows from an archived backup, resetting the system, or completely reinstalling Windows.
RestoreHealth: This final argument repairs the corrupted files and stores the corruption records to C:WindowsLogsCBSCBS.log. To bring back the health of the image, type this command:
DISM /Online /Cleanup-Image /RestoreHealth
Wait until the process is completed which can take between 10 and 15 minutes, depending on the severity of the severity of the corruption. If the corrupted files have been repaired , you will see “The restore operation was successfully completed.
Do not interrupt the process until it’s completed. Once the process has been completed then restart your computer and check if the issue is solved or not.
If you wish to examine the log files for an even more thorough report on the results of the DISM scanner as well as repair, type the following address in File Explorer’s address bar. File Explorer’s address bar, and press Enter:
You can also open your Run command and enter any of these commands in order to display the report.
If you get an “Windows Resource Protection detected corrupted files and successfully restored them.” message It means that DISM has identified and repaired damaged files. Then, restart your computer and check whether the issue is solved.
Fix Windows Image with PowerShell
It is also possible to use Windows PowerShell to repair Windows Component Store since the PowerShell version of Windows 11 and DISM commands includes the same cmdlet. To fix the Windows image using PowerShell you must take these actions:
To begin, start PowerShell with administrator rights. Find the word ‘PowerShell’ on the Windows search engine, then right-click on the result that appears and choose “Run as administrator”.
Check Windows Image:
Enter the following command, then press Enter to test your Windows Component store for corruption:
Repair-WindowsImage -Online -CheckHealth
This command checks to see whether there’s any corrupted data within your system image, but it can’t repair anything.
If you see the word ‘ImageHealthState: Healthy’ in your scan report that indicates that there were no errors in the store for the component.
Scan Windows Image:
If you see the image health state” as being repairable, this means that you must execute the following command to examine the image:
Repair-WindowsImage -Online -ScanHealth
The above command doesn’t fix anything, it only finds corruption and saves the details in the log file (C:WindowsLogsDISMdism.log).
Repair Windows Image:
Once the scan has been completed After the scan is complete, type the following command into the elevated PowerShell window, and then press Enter:
Repair-WindowsImage -Online -RestoreHealth
This command looks for signs of any signs of corruption. If it finds the problem, it’ll automatically fix it.
If you don’t have internet, you can use the ‘Source’ option with ‘install.wim/install.esd’ to restore the system components. You can run the DISM command offline from the local Windows image file (install.wim/install.esd). To do this, run this command
Repair-WindowsImage -Online -RestoreHealth -Source G:sourcesinstall.wim:6 -LimitAccess
In which case you must specify where you need to specify the Windows Version Index in your .esd/.wim file.
Repair Windows Image using install.esd/.wim Image Offline
If you do not have internet access or DISM encounters issues replacing damaged files, you’ll have to create a new Windows image with bootable installation media, or an Windows 11 ISO file. You can choose to use the ‘install.wim’ or ‘install.esd file that comes from bootable install media , or a the mounted Windows 11 ISO file to run DISM offline.
Create Windows 11 Bootable USB Drive or Mount the Windows 11 ISO
In the beginning it is necessary to download a new copy of Windows 11 using the Media Creation Tool. Here’s how to create an USB drive that can boot. Windows USB device:
Visit the official Windows 11 download page and click on the “Download Now” button in the “Create Windows 11 Installation Media’ section.
Select the destination folder, and then select Save’.
After that, double-click on the ‘MediaCreationToolW11.exe’ tool to run the setup. If you get an User Account Control request, select ‘Yes’..
Then, click the “Accept” button to agree with the terms of the license.
In the next window Click Next If you wish to keep your default languages (English (United United States)) as well as the edition. If you wish to alter the language and edition, remove the ‘Use recommended options for this computer’ option and then choose the languages and editions in the dropdown menus.
Then, select the USB flash drive option for creating USB installations media. Or, select ISO file in case you wish to copy the ISO to an DVD later, or install the image.
If you select ISO file option as your media option, you will be able to download your Windows 11 ISO file on your local drive. Double-click your downloaded ISO document to install the file.
Choose your USB flash drive in the drop-down menu of drives , then select ‘Next’.
This will result in an Windows installation media which you can use to run the DISM tool.
Fix Windows 11 Recovery Image using install.esd/wim
You can now start the Deployment Image Servicing and Management tool (DISM) using the alternative image source (install.esd/wim) image taken from the installation media to fix your local image.
Start the Command Prompt in elevated mode. Copy-paste the following command and hit Enter to fix your Windows 11 image.
DISM /Online /Cleanup-Image /RestoreHealth /Source:N:Sourcesinstall.esd
DISM /Online /Cleanup-Image /RestoreHealth /Source:N:Sourcesinstall.wim
Here, replace the Source Drive letter (N: with the path to the location of the install.esd/install.wim file) with the ISO mount point or the bootable USB drive in File Explorer. If you have mounted images or bootable USB then you are able to apply their drive letter here.
To restrict the use of Windows updates through DISM, take these steps:
The install.esd/install.wim may contain multiple editions within the same image. Therefore you must determine the index number that corresponds to your Windows 11 edition you have installed on your system. To figure it out, type the following command:
dism /get-wiminfo /wimfile:N:sourcesinstall.esd
dism /get-wiminfo /wimfile:N:sourcesinstall.wim
Note down the index number of the Windows edition that you have installed on your PC.
Then, execute the following command:
dism /Online /Cleanup-Image /RestoreHealth /Source:wim:
Here you can replace
the letters Drive Letter> and
the Index> with the correct values.
DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:N:Sourcesinstall.esd:6 /LimitAccess
DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:N:Sourcesinstall.wim:6 /LimitAccess
limitationAccess argument in this case blocks the DISM program from communicating with Windows Update.
You may also make use of this command to fix your Windows images offline.
Dism /Image:C: /Cleanup-Image /RestoreHealth /Source:N:Sourcesinstall.esd
Where do you change
N:Sourcesinstall.esd with the path to the Windows 11 image and
C: with the root directory or the system directory of Window.
Using DISM to Install Windows Updates
Windows update doesn’t always function properly, and sometimes it doesn’t start or stop, or even crash when a specific update is installed. Additionally, Windows update only installs the most recent updates available and doesn’t permit users to install a specific upgrade on the system. In these cases you can utilize Windows’ built-in DISM to install the specific Windows 11 updates.
The first step is to visit first the Microsoft Update Catalog repository and download the necessary updates (Critical Updates Security Updates, Critical Updates, as well as Updates) by selecting them from the available list. If you know your Microsoft Knowledge Base ID number ( e.g. the KB5014019) for the update you’re looking for then you can look it up within the search box located in the upper left corner.
You can also type in Windows 11 in the search box to see a complete list of available updates released to the stable version.
Find the update you want to download in the drop-down menu, and select the Download button that corresponds to the update.
The download page, which contains download links in a new tab. Click the link and select the location on your drive that you can download the files. The file’s type is either ‘.cab’ or ‘.msu according to the kind of update.
Adding a Windows Update Package to an Image
With the DISM command you can select to use the
Add-Package switch to include an Windows upgrade to your Window image. This command syntax is:
Dism /Add-Package /PackagePath:
To add an update pack to an existing Windows installation, you can use the following command:
Dism /Online /Add-Package /PackagePath="C:UsersrajstOneDriveDocumentsNew folderwindows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab" /LogPath=C:mountdism.log
In the above command, replace
C:UsersrajstOneDriveDocumentsNew folderwindows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab with the downloaded update file name and its location.
To include several updates on Windows Installation: Windows Installation:
Dism /Online /Add-Package /PackagePath="C:UsersrajstOneDriveDocumentsNew folderwindows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab" /PackagePath="C:UsersrajstOneDriveDocumentsNew folderwindows10.0-kb5013943-arm64_d5a0aeff704eefab25f8674d8c01e01d476ff0b9.msu" /PackagePath="C:UsersrajstOneDriveDocumentsNew folderwindows10.0-kb5012678-x64_b6e01cb1801810d1581e29dede0e48f635521e44.cab"/LogPath=C:mountdism.log
After you have installed the updates, you can verify whether the new packages are listed on the listing of available packages on your system:
Dism /online /Get-Packages
Get rid of Windows Updates by using the DisM tool
You can also uninstall the installed Windows update by using the DISM tool, either from using the Command Prompt or the Windows recovery environment. If you experience errors or Windows is unable to start, you can employ this method to delete recent updates installed on your Windows 11 computer.
Open Command Prompt with administrative rights. After that, you can run the following command to display the complete list of recent installed updates and packages on your system:
DISM /Online /get-packages /format:table
In the column for Package Identity Look for the name of the package update you wish to remove. It is also possible to confirm the update you wish to delete by comparing the installation date and time.
For more information regarding the specific update or package, use the following command:
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 is:
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 below command:
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 are able to also turn off or enable Windows features offline using the .wim as well as a .vhd files (mounted ISO), or online with a running operating system. Here’s how to accomplish that:
The first step is to start by opening Command Prompt with administrative privileges. Then, you can list all available options within the current version of Windows 11 with the following command:
DISM /online /Get-Features
From the list of options, select the features you wish to disable or enable.
When you find a specific feature, you can find more information about the feature by using an
Get-FeatureInfo switch. For instance:
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient
Enable Windows 11 features using DISM
If you wish to activate a particular function within Windows 11, you can make use of the Enable-Feature argument.
DISM /online /Enable-Feature /FeatureName:TelnetClient /All
If you wish to enable an option in offline images that are mounted it is necessary to specify the directory that is mounted by using the
DISM /Image:D:Win11OSoffline /Enable-Feature /FeatureName:TelnetClient /All
In the example above in the above example, in the above example, replace
the D:Win11OSoffline with the location of the image that is mounted.
Once you have enabled the feature, you can access the ‘Get-FeatureInfo’ feature to determine what the current status is of this feature.
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient
If you provide more than one
Source options The DISM will use the files specified in one source option, and the other locations are not considered:
Dism /Online /Enable-Feature /FeatureName:TelnetClient /Source:N:sourcesSxS /Source:C:testmountwindows /LimitAccess
Disable Windows 11 Features using DISM
If you wish to remove a specific feature of your operating system you can use this command
DISM /online /Disable-Feature /FeatureName:TelnetClient
If you wish to deactivate the feature of an offline image it is necessary to specify the directory that is mounted by using the
DISM /Image:D:Win11OSoffline /Disable-Feature /FeatureName:TelnetClient
In the example above in the above example, in the above example, replace
the D:WIN11OSoffline with the location of the image that is mounted.
Remove Windows 11 features using DISM
If you wish to delete the feature you want to remove from your Windows installation, you do not need to remove this feature entirely from your image. To accomplish this, type the following command:
DISM /online /Disable-Feature /FeatureName:TelnetClient /Remove
If you wish to delete the feature from an image offline, you will need to specify the directory that is mounted by using the
argument /image argument:
DISM /Image:D:Win11OSoffline /Disable-Feature /FeatureName:TelnetClient /Remove
DisM was unsuccessful Error in Windows 11
When you run the DISM command on Windows 11, you may encounter a variety of issues. Here are a few of the most frequent problems reported by users:
DISM failed and no operation was executed – This is among the most frequent errors you’ll encounter when using the
the /restorehealthargument. This can be corrected by destroying DISM using an ISO file of Windows 11. Windows 11 ISO file.
- DISM failed with 0x8000fffff, 0x800f0954 and 0x800f0950. 800f081f (The source files couldn’t be located. Select”Source” to specify the location of your files “Source” option to specify the location of the files that are needed to restart the feature. ) Another frequent error that you may encounter during DISM operations. It is typically caused by a lack of access to direct Internet connection as well as Windows Update service is disabled/failed. In those cases, you can make use of an USB flash drive that is bootable USB flash drive, ISO images, as well as an install.wim (esd) document that contains an image of the Windows Installation image in order to run the scan for DISM.
DISM failed while processing command cleanup-image, add-package – This issue can be fixed by cleaning up the system image components with
/StartComponentCleanupswitch or resetting the Windows update service.
DISM failure when attempting to copy boot files – This is a common DISM problem that can be fixed by cleaning up the system image component with
- Dism.exe was unable to validate the command line, unable to load the wim manager If you’re experiencing this issue you can fix it through restarting Windows updates components.
- DISM was unable to load the provider, remove offline registry entries, to flush buffers of files, to establish the Windows directory, or mount the image The issues are easily fixed by examining your antivirus, clearing the image component of your system and resetting the Windows Update Service, or copying and indicating the proper place of Install.wim file.
DISM Commands Not Working on Windows 11?
There are a variety of reasons that can cause DISM not functioning and giving you the list above of errors in Windows 11. It is possible to fix many of these problems by using the methods below.
Clean up the Components Store
The majority of DISM problems result from the corruption of System Image Components and it is fixable by studying and cleaning up the storage of system components. DISM comes with a set of commands that restart it. DISM tool.
First, you need to analyze the component store with
/AnalyzeComponentStore argument in the DISM argument.
To examine the store’s component use this command
DiSM /Online /Cleanup-Image /AnalyzeComponentStore
You must wait for the process to be completed, and then you’ll be able to see similar information to the following:
- Windows Explorer Reported Size of Component Store : 7.48 GB.
- Actual size of component: 7.45 GB
- Date of the Last Cleanup: 2022-06-12: 23:13:57.
- Number of Reclaimable Packages: 0.
- Component Store Cleanup Recommended: Yes or No.
If the answer to ‘Component Cleaning of Stores Recommended’ option is Yes then you must start the cleanup process.
To start clean up of the components, type this command
DISM /Online /Cleanup-Image /StartComponentCleanup
This command will delete all obsolete files or older versions of the latest components from the store of components.
If the command above doesn’t solve your issue, make use of the
ResetBase option to change the size of the component store and shrink the size of it. To accomplish this, you can use the following command:
DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase
Alternately, you can use the
the /Defer switch to postpone or schedule cleanup tasks until the next scheduled maintenance of the system.
DiISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase /Defer
To reverse to the previous state of DISM, such as Windows Updates, run the following command:
DISM.exe /image:C: /cleanup-image /revertpendingactions
If you’re experiencing disk-related issues with the DISM execute the following command from the Command Prompt in administrator mode:
Since your system is currently using the C drive It will ask you whether you want to plan the scan for when the system is restarted. Enter ‘Y’ and press Enter.
After that, reboot your computer to run the chkdsk scan.
Reset Windows Update Service
DISM utilizes the Windows Update Service to download and repair or replace damaged files from Windows. Windows image. In the event that Windows Update service is unable to begin or isn’t functioning correctly, attempt to reset the Windows Update service.
The first step is to launch Command Prompt with administrative privileges. Within the Command Prompt window, input the following command and press Enter.
net stop wuauserv
Allow the process to be completed and then type the following commands, one after the other:
ren Download Download.old
net start wuauserv
Net Stop Bits
net beginning bits
Net stop the cryptsvc
ren catroot2 catroot2old
net begin the cryptsvc
Once you have successfully completed the steps after which after completing the commands, Windows Update service will be restarted and the DISM issue will be resolved.
Disable Proxy Service
If DISM is unable to join the web or function on your computer It could be due to a proxy configuration on your computer. To fix this problem it is necessary to turn off the proxy configuration on your device.
The first step is to start Windows Settings by pressing Win+I shortcuts. In the Settings app, click on the Network and Internet section and select the ‘Proxy’ option to the right.
On the page for proxy settings, switch off all settings for “Automatic proxy setup” and the ‘Manual proxy configuration’.
Modifying the type of startup for the remote Procedure (RPC) service. (RPC) Service
If you encounter an error message indicating that DISM failed 1726 most likely, it’s due to you are using the Remote Procedure Call (RPC) service is not running or has was unable to begin immediately.
Remote Procedure Call (RPC) is an interprocess communication protocol or method that allows a program solicit services from a program running on a different computer network as if it were an individual system. RPC is the mechanism responsible for defining applications that are distributed and client-server-based.
It’s a Service Control manager that works with the Component Object Model (COM) and the Distributed Component Object Model (DCOM) servers. When this protocol for communication is not enabled and all applications and services that depend on COM and DCOM (like DISM) are not functioning properly. Here’s how to change the method of starting RPC and ensure that it’s running correctly:
Then Press Windows+R keys simultaneously to open the Run dialog box. After that enter ‘services.msc” in the text box and press Enter.
You can also look up’services’ within the Windows search engine and then select the first result.
In the window for Services scroll down until you find the remote procedure call service. Procedure Call’. There are two services called Remote Procedure Call – Remote Procedure Call (RPC) and Remote Procedure Call (RPC) Locator.
Then, right-click on the ‘Remote Procedure Call (RPC)’ service and choose ‘Properties’ or double-click it.
In the General tab of the Properties window, select the drop-down menu beside the ‘Startup’ type, and change it to Automatic. After that, click ‘Apply’ and then click ‘OK’.
This will automatically begin the RPC service upon starting your system. It will also resolve the DISM 1726 error.
Double-click on the remote Procedure Call (RPC) Locater service, and ensure that it’s Startup kind is selected to Manual..
Restart the computer and make the changes. If you’re still having trouble with the issue Try the following solution.
Modify the Value of the RpcSs Registry Key
If the DISM failed error 1726 cannot be resolved using the method above You must change your RpcSs registry value to resolve the problem. Follow these steps to modify your RpcSc Registry key
Start the Run command box by pressing Win+R at the same time. After that, type’regedit” and press Enter. If you are presented with prompts for User Account Control (UAC) prompt box, select “Yes”.
Before making any changes to the registry, it’s recommended to back up your registry so that you can reverse the changes in case there is a problem. For this to be done, go to the File menu and choose ‘Export’.
After that, you must choose the backup file a name. file, select whether you wish to backup the entire registry or just the specific branch of your registry (under Export range) and then choose your destination directory. Then you click the Save button.
After backup of the registry, go to the following address or copy-paste the path below into the field for address:
In the right-hand side of the “RpcSc” key Double-click on the DWORD ‘Start’ to modify it.
Then, set the value data from Start at 2 and then press “OK” to save the modifications.
Then you have closed the registry editor and then restart your computer to apply the modifications.
Correct the Location of the Install.esd File
If you’re experiencing the “Cannot find source files” or “The system cannot find the path specified” It indicates that the location you have specified to install your Install.esd File within the Source option is not correct.
Start the elevated Command Prompt. Enter the following command and press Enter:
DISM /Online /Cleanup-Image /RestoreHealth /source:ESD:X:SourcesInstall.esd:2 /LimitAccess
In the above command , make sure that you substitute
the X by the drive number of your mounted ISO document or with the letter that is on the USB that is bootable. USB.
Temporarily Disable Windows Search Service
If you’re experiencing DISM Error 87 , or Remote Procedure Call was unsuccessful error, deactivating Windows Search service Windows Search service while running the DISM command may aid in resolving the issue. Windows Search service is a search engine that allows users to search for files and applications on your system. Follow these steps to deactivate Windows Search service: Windows Search service
Start the Run command box (press Windows+R) Enter ‘services.msc”, then press Enter for the window for Services.
In the window for Services Scroll down to the Windows search service, then right-click it and choose ‘Properties’. You can also click it and then right-click.
Under the tab General, switch the type of startup to disabled.
Then, click “Apply” and then “OK’.
This will stop temporarily the Windows search service temporarily. It is possible to disable the service at any time an error occurs, and then enable it once the DISM commands have been executed successfully.
Run DISM Command in Clean Boot Mode (Offline)
Sometimes, DISM fails because of conflicts between processes operating in background. Therefore, running the DISM commands during the clean boot mode can help avoid these issues. Here’s how to run DISM commands while in clean boot mode:
Then, you must start Windows Settings by right-clicking the Start menu and choosing “Settings”.
Within the Settings app, click on the tab ‘System’ and then click the option ‘Recovery’ on the right side of the screen.
In the Recovery page, click on the Restart Now button located under the Advanced startup tile, under Recovery.
Click the Restart Now button to reboot your computer.
Windows will then boot the system to Windows Recovery Environment.
If your computer isn’t functioning properly, you cannot use the settings above. This alternative method to access Windows Recovery Environment (WinRE). Windows Recovery Environment (WinRE).
Using Hard Reboot
The first step is to shut down your computer or shut off your computer and after that, press power to start the system. When Windows begins loading Press then hold down the power button to the shutdown of your computer.
Repeat the steps three or two times, and then the fourth time allow Windows start up normal. Windows will then automatically boot in Windows Recovery Environment (WinRE). If the screen for automatic repair is displayed, select Advanced Options.
Select the option ‘Troubleshoot’ on the Choose an option screen.
The next page, select Advanced options..
In the Advanced options screen, choose the option ‘Command Prompt.
It is possible that the Command Prompt will start with
the X:Windows System32 which isn’t a Windows Installation location. It is necessary to determine the location where Windows is installed by using the diskpart command.
Then first, type
diskpart to control drives.
the list volume to see an overview of all drives or volumes that are connected to the system. Find the drive or volume in the drive in which Windows has been installed. It is the Windows drive (which will have an alternative drive letter in place of C) is likely to have no label or name. You can also locate the Windows drive by its size if already know the drive. Write down the Windows drive’s letter in this table.
In the screen below, Volum 3 ‘F’ is the Windows drive. Note that you have written down your Windows drive letter that we will utilize to execute DISM commands.
the exit key to exit the diskpart.
Enter the following instruction to start a DISM scan on clean boot:
DISM /image:F: /cleanup-image /restorehealth
If you’re booting from an Windows install media, or are running an Windows 11 iso file connected to your computer via an bootable drive then you can execute the following DISM command in order to fix your Windows images offline.
Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.esd
Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.wim
is F? corresponds to where we have the Windows 11 drive, and
where N will be the location where we are able to access our Windows Installation media.
If you do not have enough space on your selected drive, you’ll need to create the empty directories on a different drive in order to carry out the repair operation. To accomplish this, take these actions:
Create an unnamed folder called’scratch on the separate drive. You may also use
mkdir G:scratch command for creating the directory.
Enter the following command to fix the component store by using ScratchDir:
Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.esd /ScratchDir:G:scratch
In this case, we have specified the location of the scratch directory with the
/ScratchDir switch. The repair process will take a while to complete, and then restart your computer.
Copy-Paste install.wim/esd (from the boot drive to the local C: drive)
If the DISM is unable to connect to it’s install.wim/esd files from your Windows bootable disk or the installation disc, you can copy the install.wim/esd file from onto the local C: drive.
Then, you need to first, insert first, insert the Windows 11 bootable drive or the installation disc into your computer. Alternately, you could install your Windows ISO file and create an boot drive.
Find the install.esd/wim file in your installation file and then copy it using Ctrl+C. It’s likely to be located in the Source directory of the installation files.
Then, copy the files into the local C:’ drive (system drive) using Ctrl+V. It is not necessary to put the file into a specific location, but inside the C: drive.
Then, open Command Prompt with administrative privileges.
Enter the following command into the command prompt to fix Windows:
DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:C:Install.wim:1 /LimitAccess
Disable Read-Only Option in Install.esd
Sometimes it happens that the Install.esd might not function, regardless of copying the file onto your local drive. In these instances, you need to ensure that the Install.esd as well as the Install.wim file isn’t in read-only mode. Here’s how to do it:
In your File Explorer, navigate to the Install.esd file on your system. After that, right-click the file and choose the ‘Properties’ option..
Uncheck the ‘Read-only option under Attributes, then click “Apply” and click OK.
Repair Windows Image Using Cleanup-MountPoints Argument
When you alter the Windows image using DISM, the image may become corrupted. This can be fixed by cleaning up your mount point of the image.
Make use of to use the
alternative in conjunction with the DISM option as follows:
Cleanup Mount Points