How to Use DISM Commands on Windows 11

Want to learn how to use DISM commands on Windows 11?

DISM is short for Deployment Image Servicing and Management, a built-in command tool developed for administrators to diagnose and repair the Windows image system files and its component store.

Any time you face problems on your PC like the Blue Screen of Death, corrupted system files, damaged Windows Recovery Environment, applications not functioning, and so on, running a DISM check can help resolve the issue.

Before executing a DISM on your PC, it’s best to perform an SFC scan first. When that fails, we resort to utilizing the DISM commands on Windows 11. As there are various functions you can perform with this utility, we’ve concluded this guide to organize all of them in one place.

So without any delay, let’s get started! 

1. Restore Corrupted Files with DISM Commands.

Most of the time, the DISM commands are used to restore damaged, corrupted, or even missing files on your system. The command tool begins by running a scan on your computer. Then it uses the Microsoft server to download the images and files that were required earlier.

Below are the steps to follow for this method:

  1. Begin by clicking on the Start Menu
  2. After that, type in cmd
  3. From the right section of Command Prompt, click on Run as administrator to launch it with administrative privileges. 
command prompt in windows 11
  1. Next, type in the following commands and press the Enter key after each:
DISM /Online /Cleanup-image /Scanhealth
scanhealth command
DISM /Online /Cleanup-Image /CheckHealth
checkhealth command
DISM /Online /Cleanup-Image /RestoreHealth
restorehealth command
  1. The entire process might take around 10 to 15 minutes to complete. Once done, the message The restore operation completed successfully will appear on the screen. 
  2. Finally, restart the PC and check if your issue is solved or not. 

2. Use DISM Commands to Install Windows Updates.

Another use of the DISM commands is to download and install the Windows Updates. Microsoft releases new Windows updates once in a while to enhance user experience, eliminate bugs, improve the interface, etc. The update services don’t always work as they should and sometimes end up crashing, getting disabled, etc. 

Moreover, users can’t manually install specific Windows updates they wanted. In such cases, you can utilize the DISM Commands to install particular Windows 11 updates. To do so, follow the steps below:

  1. First, head to the Microsoft Update Catalog and download the updates from your list.
     
  2. In the search bar, type in Windows 11 or the Microsoft Knowledge Base ID number for a specific update. 
microsoft update catalog
  1. Now, identify the update you wish to download and click on the Download button next to it.
download windows update
  1. A Microsoft Update Catalog screen will appear. From there, click on the link and select a location where you’d like to save this file.
microsoft winodws update catalog window
  1. Wait for the update to download, and you’re done. 

To add a Windows Update Package to an Image, follow these steps:

  1. Open the Run command by pressing Win + R keys on your keyboard.
  2. Next, type in cmd and press Ctrl + Shift + Enter keys to launch an elevated Command Prompt
run command
  1. Type in the following command to add a Windows update package to your installed Windows:
Dism /Online /Add-Package /PackagePath="C:\Users\rajst\OneDrive\Documents\New folder\windows10.0-kb5014039-x64_045d1b25ac6d875123db6de219e056f5dac11295.cab"  /LogPath=C:\mount\dism.log
Use DISM Commands on Windows 11
  1. If you wish to add several updates to your Windows installation, type in this command and press the Enter key:
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
  1. After you’re done, check your package list to see if the recently installed packages show up in the list by using this command: 
Dism /online /Get-Packages
Use DISM Commands on Windows 11

3. Use DISM Commands to Remove Windows Updates.

Sometimes, temporary bugs or glitches may appear in your Windows 11 update. Other times, the Windows may fail to boot, or there may be an error-causing interference in running Windows 11. In such instances, removing the recently installed Windows update may help to resolve the issue. 

Follow these steps below to remove a Windows 11 update from your computer by using the DISM tool:

  1. Click on the Start Menu, type cmd in the search bar, and select it from the search results. 
  2. Click on Run as administrator from the right pane of the screen to open an elevated Command Prompt
  3. Type in the following command to check for the Windows updates you’ve recently installed on your PC and hit the Enter key:
DISM /Online /get-packages /format:table
getpackages command
  1. Now, locate the particular update that you want to remove. You may also get information about a specific update by using this syntax:
DISM /online /get-packageinfo /packagename:PackageName
  1. To remove an update, use this syntax:
DISM /Online /Remove-Package /PackageName:PackageName

4. Enable or Disable Windows 11 Features With DISM.

One of the best functions you can perform with the Deployment Image Servicing and Management commands is to enable or disable Windows 11 features. These can be offline on a mounted ISO or online on a running system.

Here’s what you need to do to enable the features:

  1. Press the Win + R keys from your keyboard to open Run
  2. Next, type in cmd and press Ctrl + Shift + Enter keys to launch Command Prompt with administrative privileges. 
  3. Use the following command to check all the available features in your Windows 11:
DISM /online /Get-Features
get-features command
  1. Now, look for the feature you want to enable. You may get more information regarding a particular feature by typing this syntax:
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient
Use DISM Commands on Windows 11
  1. To enable a feature, copy and paste the Enable-Feature argument: 
DISM /online /Enable-Feature /FeatureName:TelnetClient /All
enablefeature command
  1. Use the following syntax to get status information regarding the feature you just enabled:
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient

To disable the feature, follow these steps:

  1. Open the Command Prompt as an administrator from the Start Menu or Run command.
  2. Type in the following command to disable a particular Windows 11 feature:
DISM /online /Disable-Feature /FeatureName:TelnetClient
disable-feature command
  1. Finally, check the status of the feature by using this syntax:
DISM /online /Get-FeatureInfo /FeatureName:TelnetClient

5. Remove Windows 11 Features With DISM.

In the earlier method, we explained how you could disable certain Windows 11 features on your system using the DISM commands. It focused around deleting the feature from Windows images. However, there are many users who would rather remove the feature from the Windows installation.

For that, follow these simple steps:

  1. Press the Win + R keys to open the Run command box and type in cmd
  2. Next, press Ctrl + Shift + Enter keys to launch Command Prompt with administrative privileges. 
  3. Copy and paste the following command to remove a feature:
DISM /online /Disable-Feature /FeatureName:TelnetClient /Remove

This concludes our guide on how to use DISM Commands on Windows 11. In case of any query or confusion, don’t hesitate to utilize the comments section. We’ll try our best to help you out. 

If this guide helped you, please share it. 😊

Author

  • Aimen Choudhry

    Aimen Choudhry is an architecture student who has always been fascinated by science. She now finds her therapy researching and writing about the latest technology and the issues that come alongside. Otherwise, you’ll find her playing video games, listening to music, or watching fantasy/sci-fi movies.

Leave a Reply

Your email address will not be published. Required fields are marked *