Nice to Know – Reduce the size of your Windows 8.1 WIM after patching and before doing a capture

Yes, finally it is doable, for real and it gets smaller too :-)

The Problem

Not really a problem maybe, but when the ref image gets bigger and bigger for every time you create one and you KNOW that it is just old patches and new code that consumes the space, you really want to get rid of all the junk. There has been some “do this, it works but it is not really sported”, but now we really have a solution for this.

The solution

Using dism with the new /resetbase it is now possible to cleanup the image and remove all the old patches, however, there is one downside here, when you cleanup, there is NO way to uninstall a patch, since that patch is now “base”. So you should only do this when your image is stable and have no issues at all.

Note: the /resetbase only works on a Windows 8.1 or Windows Server 2012 R2 image, there are other solutions for older legacy systems, like Windows 8 and such, and yes, I’m working on posts for that too.



Dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase


DISM /Image:C:\MyDir\Mount /Cleanup-Image /StartComponentCleanup /ResetBase

In the TaskSequence:


On TechNet:


Categories: Deployment, WIM, Windows 8.1

Tagged as:

4 replies »

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.