Wednesday, November 1, 2017

Deploy Tips&Tricks – Removing Superseded Components After Base Image Creation

If you’re creating a base or golden image with a lot of updates, it’s good to cleanup superseded components before saving your new wim file.

Here’s a simple way using DISM command line tool:

  1. Just before finish your image (on a task sequence for example)
  2. Run the following command: DISM /Online /Cleanup-Image /StartComponentCleanup /ResetBase

This will cleanup the superseded components.
Just be aware that after running the DISM command all existing service packs or updates cannot be uninstalled.

For a complete list of available commands and options just type this on an elevated prompt:
DISM /Online /Cleanup-Image /?

No comments:

Post a Comment