/Cleanup-Image /RevertPendingActions
WARNING! You should use the /RevertPendingActions option only in a
system-recovery scenario to perform recovery operations on a Windows image
that did not boot.
Example:
DISM.exe /Image:C: est\offline /Cleanup-Image /RevertPendingActions
/Cleanup-Image /spsuperseded [/hidesp]
Use /SPSuperseded to remove any backup files created during the installation
of a service pack. Use /HideSP to prevent the service pack from being listed
in the Installed Updates for the operating system.
WARNING! The service pack cannot be uninstalled after the /SPSuperseded
operation is completed.
Example:
DISM.exe /Image:C: est\offline /Cleanup-Image /spsuperseded /hidesp
/Cleanup-Image {/CheckHealth | /ScanHealth | /RestoreHealth}
Use /CheckHealth to check whether the image has been flagged as corrupted
by a failed process and whether the corruption can be repaired.
Use /ScanHealth to scan the image for component store corruption.
Use /RestoreHealth to scan the image for component store corruption, and
then perform repair operations automatically.
Use /Source with /RestoreHealth to specify the location of known good
versions of files that can be used for the repair. For more information on
specifying a source location, see
http://go.microsoft.com/fwlink/?LinkId=243077.
Use /LimitAccess to prevent DISM from contacting WU/WSUS.
Example:
DISM.exe /Online /Cleanup-Image /ScanHealth
DISM.exe /Image:c:\offline /Cleanup-Image /RestoreHealth
/Source:c: est\mount
/Cleanup-Image /StartComponentCleanup [/ResetBase]
Use /StartComponentCleanup to clean up the superseded components and reduce
the size of the component store. Use /ResetBase to reset the base of
superseded components, which can further reduce the component store size.
WARNING! The installed Windows Updates cannot be uninstalled after the
/StartComponentCleanup with /ResetBase operation is completed.
Example:
DISM.exe /Image:C: est\offline /Cleanup-Image /StartComponentCleanup
/Cleanup-Image /AnalyzeComponentStore
Use /AnalyzeComponentStore to create a report of the WinSxS component store.
For more information about the WinSxS report and how to use the information
provided in the report, see
http://go.microsoft.com/fwlink/?LinkId=293367.
Example:
DISM.exe /Image:C: est\offline /Cleanup-Image /AnalyzeComponentStore
/BP - Force a BreakPoint in Netlogon on /TRUNC - Truncate log file (rename to *.bak) /UNLOAD - Unload netlogon.dll from lsass.exe ...
/Capture-CustomImage /CaptureDir: /ConfigFile: /CheckIntegrity /Verify /ConfirmTrustedFile Captures image customizations ...
/Capture-Image /ImageFile: /CaptureDir: /Name: /Description:Description /ConfigFile: {[/Compress:{fast|max|none} /Bootable ...
/Check-AppPatch /PatchLocation: /Format: Displays information if the MSP patches are applicable to the offline image. Multiple ...
/Cleanup-Image /RevertPendingActions WARNING! You should use the /RevertPendingActions option only in a system-recovery scenario ...
/Cleanup-Mountpoints Deletes resources associated with a corrupted mounted image. This command does not unmount a mounted ...
/Cleanup-Wim Deletes resources associated with a corrupted mounted image. This command does not unmount a mounted image; ...
/Commit-Image /MountDir: /Append /CheckIntegrity Applies changes to the mounted image. The image remains mounted until the ...
/Commit-Wim /MountDir: Applies changes to the mounted image. The image remains mounted until the /Unmount-Wim option is used. ...