Deployment Image Servicing and Management (DISM) • Complete Guide for Windows 11 25H2

Collapse
X
Collapse
  •  

  • Deployment Image Servicing and Management (DISM) • Complete Guide for Windows 11 25H2

    🧱 Deployment Image Servicing and Management (DISM) • Complete Guide for Windows 11 25H2





    Category: Deployment & Imaging

    Author: jmarket (PCHF Founder)

    Verified by: PCHF Staff • October 2025



    Overview


    Deployment Image Servicing and Management (DISM) is a built-in Windows command-line utility used to create, modify, and repair Windows images (.wim, .vhd, or .esd).
    System administrators, engineers, and advanced users rely on DISM to maintain stable, deployable environments and resolve deep-level system corruption.
    Common use cases include:




    • Repairing damaged or corrupted system files

    • Integrating updates, drivers, or features into offline images

    • Mounting and servicing Windows installation media

    • Managing provisioning packages, editions, and languages



    Checking DISM Version


    dism /online /get-intl

    Displays the current DISM build and locale settings.



    Common DISM Scenarios



    1. Repair the Online Windows Installation


    Use these commands when Windows is running but corruption is suspected:


    Code:
    dism /online /cleanup-image /checkhealth
    dism /online /cleanup-image /scanhealth
    dism /online /cleanup-image /restorehealth


    • [CODE]/checkhealth{/CODE] – Quickly checks for known corruption.

    • Code:
      /scanhealth
      – Performs a comprehensive scan.

    • Code:
      /restorehealth
      – Repairs the image using Windows Update or a specified source.



    Optional: Specify a repair source if Windows Update is unavailable:


    Code:
    dism /online /cleanup-image /restorehealth /source:C:\sources\install.wim /limitaccess


    2. Clean Up Component Store (WinSxS)


    Removes superseded updates and reduces the size of the component store:


    Code:
    dism /online /cleanup-image /startcomponentcleanup

    To remove older versions permanently:


    Code:
    dism /online /cleanup-image /startcomponentcleanup /resetbase


    3. Mount and Modify Offline Images


    Code:
    dism /mount-image /imagefile:D:\install.wim /index:1 /mountdir:C:\Mount
    dism /image:C:\Mount /add-package /packagepath:C:\Updates\kb5003791.cab
    dism /image:C:\Mount /add-driver /driver:C:\Drivers /recurse
    dism /unmount-image /mountdir:C:\Mount /commit

    Tip: Always commit before unmounting to save your changes.



    4. Add or Remove Windows Features


    Enable .NET Framework 3.5 online:


    Code:
    dism /online /enable-feature /featurename:NetFx3 /all

    Or enable offline:


    Code:
    dism /image:C:\Mount /enable-feature /featurename:NetFx3 /all


    5. Capture and Apply Images


    Capture a Windows partition into a .wim image:


    Code:
    dism /capture-image /imagefile:D:\install.wim /capturedir:C:\ /name:"Windows 11 Pro 25H2"

    Apply that image to a blank partition:


    Code:
    dism /apply-image /imagefile:D:\install.wim /index:1 /applydir:C:\


    6. Convert Between ESD and WIM


    Convert an install.esd into an editable install.wim:


    Code:
    dism /export-image /sourceimagefile:install.esd /destinationimagefile:install.wim /compress:max /checkintegrity


    7. Manage Editions and Licensing


    View available editions:


    Code:
    dism /online /get-targeteditions

    Change edition (requires a valid product key):


    Code:
    dism /online /set-edition:Professional /productkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX /accepteula


    Useful Switches



    • Code:
      /online
      – Target the running operating system.

    • Code:
      /image:<path>
      – Target an offline image directory.

    • Code:
      /cleanup-image
      – Perform maintenance operations on the component store.

    • Code:
      /add-package
      Code:
      /add-driver
      – Integrate updates or drivers.

    • Code:
      /mount-image
      ,
      Code:
      /unmount-image
      – Attach or detach Windows image files.

    • Code:
      /checkhealth
      ,
      Code:
      /scanhealth
      ,
      Code:
      /restorehealth
      – Check and repair image integrity.



    Log Locations


    DISM logs all operations to:



    C:\Windows\Logs\DISM\dism.log
    C:\Windows\Logs\CBS\CBS.log

    These logs can help diagnose errors or be uploaded in your PCHF support thread for expert review.



    Advanced Deployment Workflows



    • Integrate cumulative updates, .NET Frameworks, and language packs before imaging.

    • Combine DISM with Windows ADK and WinPE for automated deployment pipelines.

    • Automate image maintenance tasks via PowerShell and Task Scheduler.



    Best Practices



    • Always back up images before servicing.

    • Avoid /resetbase unless absolutely necessary — removed updates cannot be uninstalled afterward.

    • Verify mount points using dism /get-mountedwiminfo before unmounting.

    • Use only stable Windows builds for servicing production environments.



    Troubleshooting Common DISM Errors

























    Error Code Description Suggested Fix
    0x800f081fSource files not foundSpecify /source from ISO or mounted image.
    0x800f0954WSUS connection blockedUse /limitaccess or update Group Policy to allow Windows Update as a repair source.
    0x800f082fPending rebootRestart and rerun DISM.
    0x800f0906Cannot download filesEnsure Internet access or specify a local /source.
    0x800f0831Missing update dependencyInstall prerequisites or use a matching ISO with the same build number.
    0x800f0922Component store corruptionRun sfc /scannow, then dism /restorehealth.
    0x800f0988Servicing stack or cumulative update failureInstall latest Servicing Stack Update (SSU) and retry.
    0x8024402cProxy or DNS configuration issueReset network settings: netsh winhttp reset proxy.
    0x80073712Missing or corrupt system fileRun sfc /scannow followed by dism /restorehealth.
    0x80070002File not foundVerify file paths or remount the image.
    0xC1420117Unmounting errorRun dism /cleanup-wim to clear stuck mount points.
    0xC1420127Invalid image stateRe-mount a clean image and retry servicing.
    0x80070005Access deniedRun as Administrator and ensure directory permissions.


    Policy


    This guide covers only official Microsoft tools and workflows.
    All commands are provided as-is and should be executed with administrator privileges.
    Always verify paths and sources before servicing production systems.





    All content © 2025 PC Help Forum. DISM is a Microsoft tool distributed with Windows operating systems.
    This guide references official Microsoft documentation and should be used for legitimate repair or deployment purposes only.

      Posting comments is disabled.

    Article Tags

    Collapse

    There are no tags yet.

    Latest Articles

    Collapse

    • Windows Package Manager (Winget)
      by jmarket
      📦 Windows Package Manager (Winget) Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview Windows Package Manager (Winget) is Microsoft’s official command-line utility for discovering, installing, upgrading, and managing applications on Windows. It provides a unified package management experience similar to Linux package managers, enabling automation, bulk deployments, and consistent system provisioning using simple, scriptable...
      10-16-2025, 06:07 PM
    • Windows Terminal (Modern Command Line Interface)
      by jmarket
      🖥️ Windows Terminal (Modern Command Line Interface) Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview Windows Terminal is Microsoft’s modern command-line application designed for developers, system administrators, and power users. It unifies access to PowerShell, Command Prompt, Azure Cloud Shell, and the Windows Subsystem for Linux (WSL) under a sleek, tabbed interface with full GPU-accelerated text rendering. Terminal su...
      10-16-2025, 03:18 AM
    • Sysinternals Suite (Advanced System Utilities)
      by jmarket
      ⚙️ Sysinternals Suite (Advanced System Utilities) Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview The Sysinternals Suite is a comprehensive collection of advanced system utilities developed by Microsoft for Windows diagnostics, performance analysis, and troubleshooting. Originally created by Mark Russinovich and Bryce Cogswell, the suite has evolved into an indispensable toolkit for IT professionals, system administrators, and ...
      10-16-2025, 03:18 AM
    • PowerToys (Productivity Utilities for Windows 11)
      by jmarket
      🧩 PowerToys (Productivity Utilities for Windows 11) Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview Microsoft PowerToys is an official suite of open-source utilities designed for advanced Windows users who want to streamline and customize their workflow. Originally introduced for Windows 95, PowerToys has been reimagined for modern versions of Windows 10 and 11 — offering refined, lightweight tools that integrate seamlessly...
      10-16-2025, 03:17 AM
    • Windows Assessment and Deployment Kit (ADK) + WinPE Add-on
      by jmarket
      🧰 Windows Assessment and Deployment Kit (ADK) + WinPE Add-on Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview The Windows Assessment and Deployment Kit (ADK) provides a comprehensive set of tools used by IT professionals and system integrators to deploy, assess, and customize Windows images. It includes key components such as Deployment Image Servicing and Management (DISM), Windows System Image Manager (Windows SIM), and the Wind...
      10-16-2025, 03:17 AM
    • PC Health Check (App Compatibility Tool)
      by jmarket
      💻 PC Health Check (App Compatibility Tool) Category: Microsoft Official Tools Author: jmarket (PCHF Founder) Verified by: PCHF Staff • October 2025 Overview PC Health Check is Microsoft’s official utility for verifying whether a system meets the hardware and firmware requirements for Windows 11. It performs a detailed compatibility scan, checking TPM 2.0 status, Secure Boot capability, CPU generation, available storage, and memory capacity. Results are presented in a clear, user-friendly summ...
      10-16-2025, 03:17 AM
    Working...