Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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]
CapabilityNamespecifies the name of a capability you're adding to your image.Sourceallows you to choose a ___location, such as a server, where the capability source files are located. You can use multiple/Sourcearguments.Note
DISM checks for the source files in the following order:
- If 
/Sourceis specified, DISM looks in the specified locations first. - If 
/Sourceis 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. - If the files still aren't found, and if DISM is working against an online image, and if 
/LimitAccessis not specified, it looks for the files on Windows Update. 
- If 
 LimitAccesstells 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>
/CapabilityNamespecifies the capability you would like to export. Multiple/CapabilityNamearguments can be used./Sourcespecifies the ___location of the source repository./Targetspecifies 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>
CapabilityNamespecifies 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>
CapabilityNamespecifies 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
Related topics
DISM - Deployment Image Servicing and Management Technical Reference for Windows
DISM Global Options for Command-Line Syntax
DISM Operating System Package Servicing Command-Line Options
DISM Languages and International Servicing Command-Line Options