Microsoft took a serious look at how to save space from the operating system files with Windows 8.1 Update. What they came up with at the time was WIMBoot, which used the recovery partition’s compressed WIM image file as the basis for most of the system files needed by Windows. Since the recovery partition is at least 4 GB in size, this is a pretty substantial savings especially on the lower cost devices which WIMBoot was targeted at.

I’ve discussed the changes with Windows 10 a couple of times, but a recent blog post from Michael Niehaus outlines how the new system works, what it is called, and how to manually enable it.

The last bit there is pretty important, since moving to WIMBoot was not something that could be done easily. It had to be done at the time the system image was put onto the computer, and there were a couple of extra steps OEMs could take in order to incorporate their own software into the WIMBoot.

Standard Partition with Windows 8.1

WIMBoot Enabled Windows 8.1

This also lead to some of the first issues with WIMBoot. The actual size of the recovery partition, if it was just Windows, would be around 4 GB, but once an OEM adds in their own software, along with maybe a copy of Microsoft Office, and all of a sudden the recovery partition could bloat to 10 GB or more. This was a major issue because unlike with a standard install of Windows, the recovery partition can not be removed on a WIMBoot system leaving a large chunk of a possibly small drive used up with no way to reclaim that space.

The other issue was that over time the WIMBoot partition would become less and less used, since when there were security updates to the operating system, key system files would be replaced with a full uncompressed version, but the original version would still be part of the WIM which could not be modified. Over time, Windows would grow and grow to fill more and more of the drive, and the WIMBoot concept was clearly not working out as intended.

So with Windows 10, Microsoft has moved away from the recovery partition altogether. When you do a system reset, Windows will be rebuilt from the components in the \Windows\winsxs folder. This means that the system will also be almost fully patched after a reset, unlike with earlier versions of Windows where any restore off of the recovery partition would revert you back to whatever set of files was used to create the WIM. Only the most recent 30 days of patches will be installed, and this was a design decision in case the reset itself is due to something going wrong within the last 30 days.

The other part of the space savings is from a compression tool Microsoft is calling Compact OS. This kind of goes back to WIMBoot in a way, since the system files are compressed into what amounts to a WIM file. The big difference here is that unlike WIMBoot, CompactOS can be enabled and disabled on the fly.

From an administrative command prompt, simply use the commands:

Compact.exe /CompactOS:query

This will query Windows to see if CompactOS is enabled or not

Compact.exe /CompactOS:always

This will enable CompactOS

Compact.exe /CompactOS:never

This will disable CompactOS

I ran CompactOS on an ASUS TP200S which has 64 GB of eMMC storage. Windows 10 did not enable CompactOS automatically since it was not needed, but manually enabling it saved over 3 GB of space on the C: drive. Luckily ASUS has included enough storage in the TP200S where it’s not really necessary out of the box, but on any system with 32 GB or less this could be a big help.

There is going to be a performance impact of course since the files will need to be decompressed when accessed and the actual differences are something I hope to have a chance to test and document at some point in the not too distant future.

In the end, CompactOS looks to be a nice upgrade over WIMBoot which had a lot of promise, but was not as effective as hoped.

Source: TechNet

Comments Locked

67 Comments

View All Comments

  • aebiv - Sunday, October 25, 2015 - link

    Try having something a bit newer. Both my desktop and laptop require network, audio, and chipset drivers.
  • CaedenV - Friday, October 2, 2015 - link

    Oh for goodness sake. If you can side-load an OS onto a phone then surely it is not that hard to go to your manufacturer's website and download drivers to go with your recovery media. You can even have most of those drivers install during the OS install by making an autounatend file with a driver folder on the install media. It is one extra step, sure... but it is a freaking PC that has vastly more hardware combinations, features, and capabilities compared to a phone or tablet, and it isn't THAT much harder to do.
  • jabber - Friday, October 2, 2015 - link

    You make that sound like a bad thing. I hate doing recovery installs on PCs and having 4+ year old drivers/bloatware to deal with. If I can do a clean/fresh install...all the better.

    Plus a competent IT guy downloads the drivers he might need before hand.
  • inighthawki - Friday, October 2, 2015 - link

    Nearly all critical hardware has drivers available on disk, and OEM specific drivers can almost always be found on Windows Update these days. A fresh install of Windows 10 on my Lenovo Yoga 2 after a windows update had all the drivers automatically. A disc image with all the proper OEM drivers is nearly useless these days if you have an internet connection.
  • Samus - Saturday, October 3, 2015 - link

    Honestly, any PC made before 2015 already has drivers built into Windows 10 or on Windows Update.

    If future PC's don't have natively supported hardware, any reputable manufacture like HP, Dell and Lenovo provide a driver collection in a single file. I downloaded one the other day for a Pavilion x360 i3-5010U and it came out to 700MB. There was also a BIOS update that added "Windows 10 Support" whatever the hell that means ;)
  • Murloc - Monday, October 5, 2015 - link

    OEM drivers are available on the internet though. And as a bonus, you can avoid the bloatware.
  • CaedenV - Friday, October 2, 2015 - link

    actually, you can go to MS's website and download win10 installer for free with their Make Media option. You still need to provide a key (typically injected in Bios these days), but there is no need to go out and purchase physical media anymore unless you also need to buy a key to go with it.
  • egmccann - Wednesday, October 7, 2015 - link

    Actually, you don't need to provide a key if the installer has been run on that system before. I did the upgrade on my system, then decided (since it had run 7 for several years and it was past time for a general cleanup) to wipe and reinstall. While it *asked* for a key, I didn't give it one - and at the end of setup, went into the properties and saw ti sitting there, activated and happy.
  • epobirs - Monday, October 5, 2015 - link

    This is simply wrong. Windows 10 activation does not work like previous generations. You can easily obtain an image from Microsoft and do a clean install on a previously activated system.
  • xenol - Tuesday, October 6, 2015 - link

    Those two methods are practically identical. Aside from that, Microsoft provides a way for you to download a Windows 10 image you can use for reinstallation purposes. It may or may not be updated, but then again, neither is Android very often.

Log in

Don't have an account? Sign up now