DISM Capabilities Package Servicing Command-Line Options

Windows 10 and Windows 11 desktop editions (Home, Pro, Enterprise, and Education) only. Use Deployment Image Servicing and Management (DISM.exe) to service Windows capabilities. Capabilities are a Windows package type allows you to request services like .NET or languages without specifying the version. Use DISM to search multiple sources like Windows Update or your corporate servers to find and install the latest version.

To see the available capabilities, go to Features On Demand.

Note

Each of these commands requires either the /Online or /Image:<path_to_offline_image_file> argument.

/Add-Capability

Adds a capability to an image.

Syntax:

Add-Capability /CapabilityName:<capability_name> [/Source:<source>] [/LimitAccess]
  • CapabilityName specifies the name of a capability you're adding to your image.
  • Source allows you to choose a location, such as a server, where the capability source files are located. You can use multiple /Source arguments.

    Note

    DISM checks for the source files in the following order:

    1. If /Source is specified, DISM looks in the specified locations first.
    2. If /Source is not specified, or if the source files are not found in the specified locations, DISM checks to see if a group policy is set. If it is, DISM checks the locations specified by the group policy.
    3. If the files still aren't found, and if DISM is working against an online image, and if /LimitAccess is not specified, it looks for the files on Windows Update.
  • LimitAccess tells DISM to not check Windows Update or Windows Server Update Services for the capability source files.

Examples:

Dism /Online /Add-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0
Dism /Online /Add-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0 /Source:\server\share /Source:\server2\share
Dism /Online /Add-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0 /Source:\server\share /LimitAccess

/Export-Source

Export a set of capabilities into a new repository.

Syntax:

/Export-Source /CapabilityName:<capability_name> /Source<path_to_installation_packages> /Target:<path_to_repository>
  • /CapabilityName specifies the capability you would like to export. Multiple /CapabilityName arguments can be used.
  • /Source specifies the location of the source repository.
  • /Target specifies the location of the new repository.

Example:

Dism /Image:C:\test\offline /Export-Source /Source:C:\test\source /Target:C:\test\target /CapabilityName:Language.Basic~~~en-US~0.0.1.0

/Get-Capabilities

Gets a list of capabilities in the image, and their install status.

Example:

DISM /Online /Get-Capabilities

/Get-CapabilityInfo

Get information about a specific capability.

Syntax:

Get-CapabilityInfo /CapabilityName:<Capability_Name>
  • CapabilityName specifies the name of a capability you want information about.

Example:

DISM /Online /Get-CapabilityInfo /CapabilityName:Language.Basic~~~en-US~0.0.1.0

/Remove-Capability

Removes a capability from an image.

Syntax:

Remove-Capability /CapabilityName:<Capability_Name>
  • CapabilityName specifies the name of a capability you want to remove. You can specify more than one capability to remove.

Examples:

Dism /Online /Remove-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0
Dism /Online /Remove-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0 /CapabilityName:Language.Basic~~~en-GB~0.0.1.0
Dism /Image:C:\test\offline /Remove-Capability /CapabilityName:Language.Basic~~~en-US~0.0.1.0

Features On Demand

DISM - Deployment Image Servicing and Management Technical Reference for Windows

What is DISM?

DISM Global Options for Command-Line Syntax

DISM Operating System Package Servicing Command-Line Options

DISM Languages and International Servicing Command-Line Options