Dism install package

Usually, the catalog site offers updates in the form of .msu file extension which is easy to install i.e. double-click on the setup file and the installation starts immediately afterward. However, what if the downloaded file bears a .cab extension? In this post, we will discuss the essential steps required to install Windows 10 cab updates using the DISM tool.

DISM.exe / Online / Add-Package / PackagePath: Pathofthecabfile

Note: Replace the “Pathofthecabfile” with the actual cab file location. For instance, if you have placed the cab file under the root directory, use this path – C:KB_number-x64.cab.


Dism install package

Alternatively, one may also open the folder containing the cab file. While holding the Shift key on your keyboard, right-click on this file and select “Copy as path” from the list of available options.

/ NoRestart / quiet

Note: If you don’t run the above command, Windows will restart on its own after applying the update.

Features on Demand (FODs) are Windows features that can be added anytime. Standard features include language resources like handwriting recognition or other features like the . NET Framework (. NetFx3). When Windows 10, 11, or Windows Server needs a new feature, it can request the feature package from Windows Update.


Dism install package

If the Windows Update client is broken on the computer, FODs may not download correctly — e.g., it may stall at 75% or so, or end up with the error code 0x80070490. As a workaround, you can install the FODs from the ISO.

This post tells you how to install a Feature On Demand package offline.

You can install a Feature On Demand package offline by downloading the Languages and Optional Features ISO. This FOD ISO contains cab files for all the FODs released for the Operating System.

Download the FOD ISO

First, download the Language and Optional Features ISO for your Operating System.

Windows 11, version 22H2 Language and Optional Features ISO (Source)22621.1.220506-1250.ni_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso

Windows 10, version 2004 (and later) Features on Demand #1 ISO (Source)19041.1.191206-1406.vb_release_amd64fre_FOD-PACKAGES_OEM_PT1_amd64fre_MULTI.iso

After downloading the ISO, right-click on it and choose Mount. This assigns a drive letter for the ISO.


Dism install package

Install the Feature On Demand Package from the ISO

The command-line syntax to install a FOD CAB file is below:

dism /online /add-package /packagepath:”CAB_FILE_PATH”

Let’s say you want to install the “Japanese Supplemental Fonts” Feature from the ISO.

Note: The CAB file will be present in the root folder of the Windows 10 FOD ISO. Whereas in the Windows 11 FOD ISO, this file is under the LanguagesAndOptionalFeatures folder.

dism /online /add-package /packagepath:”H:LanguagesAndOptionalFeaturesMicrosoft-Windows-LanguageFeatures-Fonts-Jpan-Package~31bf3856ad364e35~amd64~~.cab”

dism /online /add-package /packagepath:”H:Microsoft-Windows-LanguageFeatures-Fonts-Jpan-Package~31bf3856ad364e35~amd64~~.cab”

dism /online /add-capability /capabilityname:”Language. Fonts. Jpan~~~und-JPAN~0.0.1.0″

It should say, “The operation completed successfully.”


Dism install package

That’s it! You’ve now installed the FOD component offline. You can use the above method to install any other FOD, like WordPad, Paint, XPS Viewer, RSAT Tools, . NET Framework 3.5, etc.

If you liked this post, please share this?

DISM (обслуживание образов развертывания и управление ими) — это командный инструмент, разработанный для администраторов и экспертов для сканирования и восстановления образов Windows, включая среду восстановления Windows, программу установки Windows и среду предустановки Windows (WinPE). Это встроенный в Windows 11 инструмент, который может проверять и восстанавливать защищенные системные файлы и хранилище компонентов образов Windows.

Если ваш ПК с Windows 11 не работает должным образом, приложения не открываются, ваши файлы повреждены, зависают на синем экране и т. д., вы можете запустить инструмент DISM, чтобы исправить эти проблемы. В большинстве случаев средство проверки системных файлов (SFC-сканирование) может исправить различные проблемы с установкой Windows из-за отсутствия или повреждения системных файлов. Однако, если инструмент SFC не может решить проблему, вы можете использовать DISM для восстановления образов и системных файлов в Windows 11.

Even if your system does not boot, you can restore it with a number of DISM commands from the Windows Recovery Environment. In this guide, we will show you how to use DISM commands to solve various problems in Windows 11.

DISM first scans your computer for corrupted or missing files related to various Windows services. After that, it will download the necessary images and files from the Microsoft server and replace the damaged files. You will need an active internet connection for this to work.

To run this tool, you first need to run Command Prompt with administrator privileges. Then enter the following commands one by one and press Enter for each command:

ScanHealth: This switch scans your system’s component store for corrupted files and saves an entry to C:WindowsLogsCBSCBS.log. But this command does not fix the problem. To scan files for corruption, type the following command and press Enter:

DISM /Online /Cleanup-image /Scanhealth

DISM is not case sensitive, you can write whatever you want (DISM, dism, Dism, etc.).

Dism install package

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 tell you if the image is healthy, repairable or non-repairable: Enter the command below to check if the image is healthy:

DISM /Online /Cleanup-Image /CheckHealth

Dism install package

The verification process will take 10-15 minutes. When it is done, you will see one of the following messages:

RestoreHealth: This last argument restores corrupted files and stores corrupted entries in C:WindowsLogsCBSCBS.log. To restore the system image to working order, enter the following command:

DISM /Online /Cleanup-Image /RestoreHealth

Dism install package

Then wait for the process to complete, which will take 10-15 minutes depending on the damage. If the corrupted files are repaired, you will see the message “Repair operation completed successfully.

Do not interrupt the process until it is completed. Once the process is complete, restart your computer and see if the issue is resolved or not.

If you want to check the log files to get a more detailed DISM scan and repair report, please enter the following path in the address bar of File Explorer and press Enter:

Dism install package

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 found corrupted files and successfully repaired them.” message, this means that DISM found and fixed corrupted files. You can then restart your computer and see if the issue is resolved.

Updates for operating systems from Microsoft are initially delivered as installation files in the MSU format or with the less common CAB extension. Also, packages are often used to install network components and various drivers.

Some Windows 10 users are faced with the need to install system updates offline. There are usually different reasons for this, whether it is the occurrence of failures in the regular mechanism of the Update Center or the restriction of traffic on the target computer. We have already talked about where to get and how to install the update for Windows 10 manually in a separate article.

Read more: Install updates for Windows 10 manually

But if everything is very clear with MSU packages, because the process of installing them is practically the same as other executable files, then with CAB you will have to perform a little more unnecessary “body movements”. Why and what needs to be done for this, we will further discuss with you in this article.

In fact, CAB packages are another kind of archives. You can easily verify this by unpacking one of these files using the same WinRAR or 7-ZIP. So, you will have to extract all the components if you need to install the driver from the CAB. But for updates, you will need to use a special utility in the system console.

Device Manager (for drivers)

This method is suitable for forced installation of the control software of the device using standard Windows 10 tools. Of the third-party elements, you will need an archiver and the CAB file itself.

:/>  TP-Link AC2600 Wireless Dual Band Router Archer C2600 Review

Please note that the package installed in this way must be completely suitable for the target equipment. Otherwise, after carrying out the above procedure, the device may stop functioning correctly or refuse to work at all.

Console (for system updates)

If the CAB file you downloaded is an installer for a Windows 10 cumulative update or individual system components, you can’t do without the command line or PowerShell here. More precisely, we need a specific Windows console tool – the DISM.exe utility.

The specified program is used to prepare and maintain system images. It also contains functionality for integrating updates into the system, which, in fact, is what we need.

In this way, you can manually install any Windows 10 cumulative updates, except for language packs, which also come as CAB files. To do this, it would be more correct to use a separate utility designed specifically for these purposes.

Lpksetup (for language packs)

After that, if the selected package is compatible with the edition of Windows 10 installed on your PC, just follow the prompts of the installer.

As you can see, there are a number of ways to install CAB files in the tenth version of the OS from Microsoft. It all depends on which component you intend to install in this way.

More related articles

Windows Update doesn’t always work properly, sometimes it won’t start, shuts down, or crashes on a certain update. Moreover, Windows Update only installs the latest available updates, it does not allow you to install a specific update on your system. In such cases, you can use the built-in DISM to manually install certain Windows 11 updates.

First, visit the Microsoft Update Catalog repository and download the necessary 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 need, you can search for it in the search box in the top left corner.

Dism install package

Alternatively, you can simply type “Windows 11” into the search box to get a list of all available updates released for the stable build.

Dism install package

Find the update you want to download from the list and click the download button corresponding to it.

Dism install package

A download page will open with download links in a new window. Just click the link and select a location on your local drive to save the file. The file type can be “.cab” or “.msu” depending on the type of update.

Dism install package

Adding a Windows Service Pack to an Image

In the DISM command, you can use the /Add-Package switch to add the Windows update to the window image. The command syntax is as follows:

To add the service pack to a running Windows installation, use the following command:

Dism install package

To add multiple updates to a Windows installation:

After installing the updates, you can check if the added packages appear in the package list on your system:

Dism /online /Get-Packages

Dism install package

Remove Windows updates with DISM tool

You can also remove an installed Windows update using the DISM tool from the command line or Windows Recovery Environment. If you encounter an error or Windows won’t boot, you can use this method to uninstall recently installed updates from your Windows 11 PC.

Open a command prompt with administrator rights. Then run the command below to see a list of all recently installed packages and updates on your computer:

DISM /Online /get-packages /format:table

Dism install package

In the Package ID column, find the name of the update package you want to uninstall. You can also confirm the package you want to remove by specifying the installation time and date.

DISM /online /get-packageinfo /packagename:PackageName

DISM /online /get-packageinfo /packagename:Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0

Dism install package

Update package removal syntax:

DISM /Online /Remove-Package /PackageName:PackageName

For example, to remove the update name “Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0”, run the following command:

DISM /Online /Remove-Package /PackageName:Package_for_ServicingStack_1011~31bf3856ad364e35~amd64~~25145.1011.1.0

Dism install package

DISM commands not working on Windows 11?

There are several reasons why DISM is not working and showing the above list of errors on Windows 11. You can fix most of these issues using the following methods.

Clear component storage

Most DISM issues are caused by system image component corruption, and this can be fixed by analyzing and clearing the system component store. DISM has a set of commands to update the DISM tool.

First, you need to analyze the component store with the /AnalyzeComponentStore argument in the DISM argument.

To analyze the component store, run the following command:

DiSM /Online /Cleanup-Image /AnalyzeComponentStore

Wait for the process to finish, after which you will see something like the following information:

If “Recommended Component Store Cleanup” is set to “Yes”, you need to proceed with the cleanup operation.

Dism install package

To run component cleanup, enter the following command:

DISM /Online /Cleanup-Image /StartComponentCleanup

This command will remove all obsolete files or previous versions of updated components from the component store.

Dism install package

If the above command does not solve your problem, use the /ResetBase argument to reset the size of the component store and make it smaller. To do this, use the following command:

DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase

Dism install package

Alternatively, you can use the /Defer switch to delay or schedule cleanup operations until the next automatic system maintenance.

DiISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase /Defer

Dism install package

To cancel all pending DISM tasks, including Windows updates, run the following command:

DISM.exe /image:C: /cleanup-image /revertpendingactions

Run CHKDSK

If you have problems with a disk in DISM, run the following command from a command prompt in administrator mode:

Since your system is currently using drive C, it will ask you if you want to schedule a scan the next time you restart your system. Type “Y” and press Enter.

Dism install package

Then restart your computer to run the chkdsk scan.

Reset Windows Update Service

DISM uses the Windows Update service to download and repair or replace corrupted files in a Windows image. If the Windows Update service does not start or does not work properly, try resetting the Windows Update service.

First run the command prompt with administrator rights. In the command prompt window, type the following command and press Enter.

Wait for the process to complete, then enter the following commands one by one:

ren Download Download.old

net stop bits

net start bits

net stop cryptsvc

ren catroot2 catroot2old

net start cryptsvc

After successful execution of the commands, the Windows Update service will be restarted and the problem with DISM will be fixed.

Disable proxy service

If DISM cannot connect to the Internet or work on your system, this may be due to the proxy server setting on your PC. To fix this problem, you need to disable the proxy on your device.

First open Windows settings by pressing Win+I shortcuts. In the Settings app, go to Network & Internet on the left and tap on Proxy on the right.

Dism install package

On the proxy settings page, turn off all settings in the “Automatic proxy settings” and “Manual proxy settings” sections.

Dism install package

Changing the Startup Type of the Remote Procedure Call (RPC) Service

If you see the DISM failed 1726 error, it’s probably because the Remote Procedure Call (RPC) service is disabled or doesn’t start automatically.

Remote Procedure Call (RPC) is an inter-process communication protocol or method that allows a program to request services from another program located on another computer on the network as if it were the local system. It is responsible for structuring distributed client-server applications.

This is a service control manager for Component Object Model (COM) and Distributed Component Object Model (DCOM) servers. If this communication protocol is disabled, then all services and applications that depend on COM and DCOM (such as DISM) will not work properly. Here is how you can change the startup method for RPC and make sure it works correctly:

First, press the Windows + R keys at the same time to open the Run dialog box. Then type “services.msc” into the text box and press Enter.

:/>  Спящий режим на Windows 10: как его настроить, включить или отключить

Dism install package

Alternatively, you can simply search “services” in Windows search and open the top result.

Dism install package

In the Services window, scroll down and find a 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 just double click it.

Dism install package

On the General tab of the Properties window, click the drop-down menu next to Startup Type and change it to Automatic. Then click Apply and then OK.

Dism install package

This will automatically start the RPC service at system startup and fix DISM error 1726.

Also, double-click the Remote Procedure Call (RPC) Locater service and make sure its startup type is set to Manual.

Dism install package

Then restart your computer for the changes to take effect. If you are still facing the issue, try the next solution.

Change the value of RpcSs registry key

If the DISM failed 1726 error is not resolved by the above method, you need to change the RpcSs registry value to fix the problem. Follow these instructions to change the RpcSc registry key:

Open the Run command window by pressing Win + R at the same time. Then type “regedit” and press “Enter. If you see a User Account Control (UAC) prompt window, click Yes.

Dism install package

Before we change the registry, it’s safe to back up your registry so you can undo the changes if something goes wrong. To do this, click the “File” menu and select “Export”.

Dism install package

Then give a name to the backup file, choose whether you want to back up the entire registry or a selected branch in the registry (under “Export Range”), and then select a destination folder. After that, click the “Save” button.

Dism install package

After backing up the registry, navigate to the following location, or copy and paste the path below into the address field:

Dism install package

In the right sidebar of the “RpcSc” key, double-click the “Start” DWORD to edit it.

Dism install package

Now set “Data Value” to “Start” 2 and click “OK” to save changes.

Dism install package

After that, close the Registry Editor and restart your computer for the changes to take effect.

Correct the location of the Install. esd

If you encounter the message “Unable to find source files” or “The system cannot find the specified path”, it means that the location you specified for the Install.esd file in the “Source” parameter is incorrect.

Open an elevated command prompt. Then type 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 X with 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 a remote procedure call error, disabling the Windows Search service while running the DISM command may help resolve the issue. Windows Search Service is a search service that allows you to search for files and applications on the system. Follow these instructions to disable Windows Search Service:

Open the Run command window (press Windows+R), type “services.msc” and press Enter to open the Services window.

Dism install package

In the Services window, scroll down to the Windows Search service, right-click it, and select Properties. Or you can just right click on it.

Dism install package

Then on the General tab, change the Startup Type to Disabled.

Dism install package

After that click “Apply” and then “OK”.

Dism install package

This will temporarily stop the Windows search services. You can disable the service whenever an error occurs and then re-enable it after the DISM commands run successfully.

Run DISM command in clean boot mode (standalone)

Sometimes DISM fails due to service conflicts running in the background. Thus, running DISM commands on a clean boot can prevent these issues. Here is how you can run DISM commands in clean boot mode:

First, open Windows Settings by right-clicking the Start menu and selecting Settings.

Dism install package

In the Settings app, go to the System tab and click Recovery on the right pane.

Dism install package

On the Recovery page, click the Restart Now button on the Advanced Startup tile in the Recovery section.

Dism install package

Click the Restart Now button again to restart your computer.

Dism install package

Windows will boot your system into Windows Recovery Environment.

If your computer does not boot properly, you can access the above settings. You can use this alternate method to access the Windows Recovery Environment (WinRE).

Using hard reset

Turn off the computer first, or turn off the computer, and then press the power button to turn on the system. And when Windows starts to load, press and hold the power button to force shutdown your computer.

Repeat these steps two or three times, and for the fourth time, let Windows boot normally. It will automatically boot into the Windows Recovery Environment (WinRE). When the Automatic Repair screen appears, click Advanced Options.

Then select the Troubleshooting option on the Select an option screen.

Dism install package

On the next screen, select Advanced Options.

Dism install package

On the Advanced Options screen, select the Command Prompt option.

Dism install package

A command prompt will open, X:Windows System32, which is not the Windows installation location. You need to find out where Windows is installed using the diskpart command.

First enter diskpart to manage disks.

Dism install package

Then type list volume to get a list of all volumes or drives attached to your system. Then find the volume or drive where Windows is installed. The Windows drive (which will have a different drive letter instead of C) will not have a name or label. Also, you can find the Windows disk by its size if you already know it. Make a note of the Windows drive letter from this list.

In the screen below, volume 3 “F” is the Windows drive. Now write down the Windows drive letter that we will use to run the DISM commands.

Dism install package

After this type exit to exit diskpart.

Then enter the following command to run a clean boot DISM scan:

DISM /image:F: /cleanup-image /restorehealth

Dism install package

If you are booting from a Windows installation media or you have a Windows 11 iso file connected to your computer on a boot drive, you can use the following DISM command to repair a Windows image offline:

Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.esd

Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.wim

Where F: is the Windows 11 drive and N: where we have the Windows installation media.

Dism install package

If you don’t have enough space on the selected drive, you will need to specify an empty directory on a separate drive to perform the restore operation. To do this, follow these steps:

First, create a folder called “scratch” on this separate drive. You can also use mkdir G:scratch to create a folder.

Then enter the command below to restore the component store using ScratchDir:

Dism /image:F: /Cleanup-Image /RestoreHealth /Source:N:sourcesinstall.esd /ScratchDir:G:scratch

Here we have specified the location of the working directory using the /ScratchDir switch. Wait for the restore operation to complete, then restart your computer.

Copy-paste install. wim /esd (from boot disk to local drive C

If DISM cannot access the install.wim/esd file from the boot disk or Windows installation disk, you can copy the install.wim/esd file to the local drive C:

Insert the Windows 11 boot disk or installation disk into your computer first. Alternatively, you can also mount the Windows ISO file and create a bootable disk.

Then find the install.esd/wim file in the installation files and copy it with Ctrl+C. It’s probably inside the original installation files directory.

Dism install package

Then paste the copied files to “local drive C:” (system drive) by pressing Ctrl+V. You don’t need to paste the file in any specific folder only on the C: drive.

After that, open a command prompt with administrator rights.

Dism install package

Then enter the following command at the command prompt to repair Windows:

:/>  Как поменять язык в Windows 10 и русифицировать систему: инструкция установки языкового пакета

DISM /Online /Cleanup-Image /RestoreHealth /source:WIM:C:Install.wim:1 /LimitAccess

Dism install package

Disable the “Read Only” option in Install.

Sometimes the Install.esd file may not work even after copying it to the local C drive. In such cases, make sure that the Install.esd or Install.wim file is not in read-only mode. Here’s how to do it:

In File Explorer, navigate to the Install.esd file on your system. Then right-click the file and select Properties.

Dism install package

Then uncheck “Read Only” next to attributes, click “Apply” and then “OK”.

Dism install package

Restoring a Windows image using the Cleanup-MountPoints argument

Sometimes when modifying a Windows image using DISM, the image may be corrupted. This can be easily fixed by clearing your image’s mount points.

Use the /Cleanup-MountPoints option with DISM as shown below:

Dism install package

That’s all.

https://youtube.com/watch?v=i_CFGgQdoAg%3Ffeature%3Doembed

Restoring a Windows Image Using PowerShell

You can also use Windows PowerShell to repair the Windows Component Store because the Windows 11 version of PowerShell and the DISM commands have a similar cmdlet. To restore a Windows image using PowerShell, follow these steps.

To get started, run PowerShell as an administrator. Search for “PowerShell” in Windows search, right-click on the top result and select “Run as administrator”.

Dism install package

Check the Windows image:

Type the following command and press Enter to check the Windows component store for corruption:

Repair-WindowsImage -Online –CheckHealth

Dism install package

This command quickly checks for corruption in the system image, but does not fix anything.

If you see “ImageHealthState: Healthy” in the scan report, it means that no errors were found in the component store.

Dism install package

Scan Windows image:

If you see “ImageHealthState” as “Repairable”, it means you need to run the following command to scan the image:

Repair-WindowsImage -Online –ScanHealth

The above command does not fix anything, it only finds corruption and saves the details to a log file (C:WindowsLogsDISMdism.log).

Dism install package

Restore Windows Image:

Once the scan is complete, type the following command in an elevated PowerShell window and press Enter:

Repair-WindowsImage -Online –RestoreHealth

This command checks for corruption and, if it detects it, repairs it automatically.

Dism install package

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 a local Windows image file (install.wim/install.esd). To do this, run the following command:

Repair-WindowsImage -Online -RestoreHealth -Source G:sourcesinstall.wim:6 -LimitAccess

Where you need to specify the Windows version index in the .esd/.wim file.

Dism install package

Turn Windows features on or off using DISM

With DISM, you can also enable or disable Windows features offline in a .wim or .vhd file (ISO mounted) or online in a running operating system. Here’s how to do it:

First, open a command prompt with administrator privileges. Now list all available features in Windows 11 with the following command:

DISM /online /Get-Features

Dism install package

In the list of functions, find the functions you want to enable or disable.

DISM /online /Get-FeatureInfo /FeatureName:TelnetClient

Dism install package

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

Dism install package

If you want to enable a feature in an offline mounted image, you need to specify the mounted directory with the /image argument.

DISM /Image:D:Win11OSoffline /Enable-Feature /FeatureName:TelnetClient /All

In the example above, replace D:Win11OSoffline with the location of the mounted image.

After enabling a feature, you can use “Get-FeatureInfo” to check the status of the feature.

If you specify multiple /Source options, DISM uses the files in the first source argument and ignores the rest of the locations:

Dism /Online /Enable-Feature /FeatureName:TelnetClient /Source:N:sourcesSxS /Source:C: estmountwindows /LimitAccess

Disable Windows 11 features using DISM

If you want to disable a certain function of the operating system, use the following command:

DISM /online /Disable-Feature /FeatureName:TelnetClient

Dism install package

If you want to disable the feature in an offline mounted image, you need to specify the mounted directory with the /image argument.

DISM /Image:D:Win11OSoffline /Disable-Feature /FeatureName:TelnetClient

Remove Windows 11 features with DISM

If you want to remove a specific feature from a Windows installation without removing it from the image. To do this, enter the following command:

DISM /online /Disable-Feature /FeatureName:TelnetClient /Remove

If you want to remove a feature from an offline mounted image, you need to specify the mounted directory with the /image argument:

DISM /Image:D:Win11OSoffline /Disable-Feature /FeatureName:TelnetClient /Remove

Restoring a Windows image using an offline install image. esd/. wim

If you do not have internet access or DISM finds problems replacing corrupted files, you will need to provide a different Windows image using bootable installation media or a Windows 11 ISO file. You can use the install.wim or install.esd file with bootable installation media or a mounted Windows 11 ISO file to run DISM offline.

Create a bootable Windows 11 USB drive or mount a Windows 11 ISO image

First you need to download a fresh copy of Windows 11 using the Media Creation Tool. Here is how you can create a bootable Windows USB drive:

Go to the official Windows 11 download page and click the “Download Now” button under “Create Windows 11 Installation Media”.

Dism install package

Then select the destination folder and click “Save”.

Dism install package

After that, double-click the “MediaCreationToolW11.exe” tool to start the installation. If you see a User Account Control prompt, click Yes.

Dism install package

After that, click the “Accept” button to accept the license terms.

Dism install package

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 version, uncheck “Use the recommended settings for this PC” and then select your language and version from the drop-down menus.

Dism install package

Then select “USB Drive” to create the USB installation media. or choose “ISO File” if you want to burn the ISO to DVD later or mount the image.

Dism install package

If you select “ISO file” as the media, you can save the 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 drive list and click “Next”.

Dism install package

This will create a Windows installation media that can be used to run the DISM tool.

Dism install package

Restoring a Windows 11 recovery image using install. esd/wim

You can now run the Deployment Image Servicing and Management (DISM) tool with an alternate source image (install.esd/wim) from the installation media to restore the local image.

Open command prompt in elevated mode. Then copy and paste the command below and press Enter to restore the 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 bootable USB drive in File Explorer. If you have a mounted image or a bootable USB, you can just use the drive letter here.

Dism install package

To restrict the use of Windows updates using DISM, follow these steps:

The install.esd/install.wim file can contain multiple releases in one image. So, firstly, you need to find out the serial number corresponding to the version of Windows 11 installed on your computer. To do this, enter the following command:

dism /get-wiminfo /wimfile:N:sourcesinstall.esd

dism /get-wiminfo /wimfile:N:sourcesinstall.wim

Now write down the serial number of the version of Windows installed on your computer.

Dism install package

Now run the following command:

DISM /Online /Cleanup-Image /RestoreHealth /Source:esd:N:Sourcesinstall.esd:6 /LimitAccess

DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:N:Sourcesinstall.wim:6 /LimitAccess

The /LimitAccess argument here prevents DISM from contacting Windows Update.

Dism install package

You can also use this command to restore a Windows image offline:

Dism /Image:C: /Cleanup-Image /RestoreHealth /Source:N:Sourcesinstall.esd

Where to change N:Sourcesinstall.esd path to Windows 11 image and C:root directory or Window system directory.