dism - jasper-zanjani/Windows-Server GitHub Wiki

Cmdlet Description
Set-AppxProvisionedDataFile Adds custom data into the specified app (.appx) package that has been provisioned in a Windows image.
Add-AppxProvisionedPackage Adds an app package (.appx) that will install for each new user to a Windows image.
Get-AppxProvisionedPackage Gets information about app packages (.appx) in an image that will be installed for each new user.
Remove-AppxProvisionedPackage Removes an app package (.appx) from a Windows image.
Get-WIMBootEntry Displays the Windows image file boot (WIMBoot) configuration entries for a specified disk volume.
Update-WIMBootEntry Updates the Windows image file boot (WIMBoot) configuration entry, associated with either the specified data source ID, the renamed image file path or the moved image file path.
Add-WindowsCapability Installs a Windows capability package on the specified operating system image.
Get-WindowsCapability Gets Windows capabilities for an image or a running operating system.
Remove-WindowsCapability Uninstalls a Windows capability package from an image.
Clear-WindowsCorruptMountPoint Deletes all of the resources associated with a mounted image that has been corrupted.
Expand-WindowsCustomDataImage Expands a custom data image.
New-WindowsCustomImage Captures an image of customized or serviced Windows components on a Windows Image File Boot (WIMBoot) configured device.
Add-WindowsDriver Adds a driver to an offline Windows image.
Export-WindowsDriver Exports all third-party drivers from a Windows image to a destination folder.
Get-WindowsDriver Displays information about drivers in a Windows image.
Remove-WindowsDriver Removes a driver from an offline Windows image.
Get-WindowsEdition Gets edition information about a Windows image.
Set-WindowsEdition Changes a Windows image to a higher edition.
Add-WindowsImage Adds an additional image to an existing image (.wim) file.
Dismount-WindowsImage Dismounts a Windows image from the directory it is mapped to.
Expand-WindowsImage Applies an image to a specified location.
Export-WindowsImage Exports a copy of the specified image to another image file.
Get-WindowsImage Gets information about a Windows image in a WIM or VHD file.
Mount-WindowsImage Mounts a Windows image in a WIM or VHD file to a directory on the local computer.
New-WindowsImage Captures an image of a drive to a new WIM file.
Optimize-WindowsImage Configures a Windows image with specified optimizations.
Remove-WindowsImage Deletes the specified volume image from a WIM file that has multiple volume images.
Repair-WindowsImage Repairs a Windows image in a WIM or VHD file.
Save-WindowsImage Applies changes made to a mounted image to its WIM or VHD file.
Split-WindowsImage Splits an existing .wim file into multiple read-only split .wim files.
Get-WindowsImageContent Displays a list of the files and folders in a specified image.
Disable-WindowsOptionalFeature Disables a feature in a Windows image.
Enable-WindowsOptionalFeature Enable or restore an optional feature in a Windows image
Get-WindowsOptionalFeature Gets information about optional features in a Windows image.
Add-WindowsPackage Adds a single .cab or .msu file to a Windows image.
Get-WindowsPackage Gets information about packages in a Windows image.
Remove-WindowsPackage Removes a package from a Windows image.
Set-WindowsProductKey Sets the product key for the Windows image.
Get-WindowsReservedStorageState Gets the reserved storage state of the image.
Set-WindowsReservedStorageState Sets the reserved storage state of the image.
Apply-WindowsUnattend
Use-WindowsUnattend Applies an unattended answer file to a Windows image.

dism.exe?

Add-Driver Add-Package Add-ProvisionedAppxPackage Append-Image Apply-Image Apply-Unattend Capture-Image Cleanup-Image Commit-Image Disable-Feature Enable-Feature Export-Driver Export-Image Get-Driverinfo Get-Drivers Get-Featureinfo Get-Features Get-ImageInfo Get-MountedImageInfo Get-Packageinfo Get-Packages Get-ProvisionedAppxPackages List-Image Remount-Image Remove-Driver Remove-Image Remove-Package Remove-ProvisionedAppxPackage Set-ProvisionedAppxDataFile Unmount-Image

Mount an image [Zacker][Zacker]: 71

dism /mount-image /imagefile:$FILENAME /index:$N /name:$IMAGENAME /mountdir:$PATH

Practice Labs

dism /mount-wim /wimfile:c:\images\install.wim /index:1 /mountdir:c:\mount

Add a driver to an image file that you have already mounted [Zacker][Zacker]: 72

dism /image:$FOLDERNAME /add-driver /driver:$DRIVERNAME /recurse

Commit changes and unmount the image [Zacker][Zacker]: 75

dism /unmount-image /mountdir:c:\mount /commit

Determine exact name of Windows features that can be enabled and disabled [Zacker][Zacker]: 75

dism /image:c:\mount /get-features

Scan an image, checking for corruption

dism /Online /Cleanup-Image /ScanHealth

Check an image to see whether any corruption has been detected

dism /Online /Cleanup-Image /CheckHealth

Repair an offline dicsk using a mounted image as a repair source

dism /Image:C:\offline /Cleanup-Image /RestoreHealth /Source:C:\test\mount\windows

Zacker: 71-75

dism /mount-image /imagefile:C:\images\install.wim /index:1 /mountdir:C:\mount
dism /add-package /image:C:\mount /packagepath:C:\updates
dism /add-driver /image:C:\mount /driver:C:\drivers\display.driver\nv_dispi.inf
dism /commit-image /image:C:\mount
dism /unmount-image /image:C:\mount
⚠️ **GitHub.com Fallback** ⚠️