How to reduce the size of Windows 10's footprint on your PC

Alongside many new features and changes, Windows 10 also includes additional improvements that are often overlooked because they are implemented under the hood. For example, if you haven't noticed, the installation now takes far less space than previous versions, which enables it to run on devices with smaller storage capacities.

Microsoft even made changes to the recovery process to eliminate the use of a recovery image. Instead, if you ever need to reset your device, the OS will use the files already stored in the winsxs folder. Using this method, users can get around 4GB of space back.

While they all are welcomed improvements your device will take advantage without additional configuration, you may need to reduce the drive usage even more, and this is when "Compact OS" comes in handy.

Compact OS is a new mechanism that compresses all the installation files and preinstalled applications, letting you run Windows 10 from a compressed environment, reducing the footprint and freeing up space.

In this Windows 10 guide, we walk you through the steps to use the Compact OS command-line tool to shrink the Windows footprint size to save space on your device.

How to use Compact OS to reduce the size of Windows 10

Compact OS technically is a replacement for WIMBoot which offered similar advantages. You can still use it, but the new mechanism is a lot easier to set up and deploy.

It's worth noting that this guide focuses on using Compact OS on a computer already running Windows 10, but you can also use this tool to deploy a compressed installation of Windows 10 on new devices.

Warning: While the process is safe, you'll be making system changes, and there is always a chance something will go wrong. We recommend making a full backup of your PC before proceeding.

Ready? Follow these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the result, and select Run as administrator.
  3. Type the following command to verify that your system is not already compressed and press Enter:Compact.exe /CompactOS:query
  4. Type the following command to reduce the size of Windows 10 and apps and press Enter:Compact.exe /CompactOS:always

Once you completed these steps, Compact OS will begin the compression process, which could take up to 20 minutes.

Over time, the footprint of Windows 10 will be kept small, thanks to the system being able to interact with the original files directly to remove or replace them as required, unlike WIMBoot, which combines files into a single WIM file.

You can always revert the changes using the same instructions, but on step No. 4, use this command Compact.exe /CompactOS:never and press Enter.

Reducing the Windows footprint even more

Although using Compact OS can free up additional space, you should also consider that the pagefile.sys (virtual memory) and hiberfil.sys (hibernation data) can increase in size of the footprint even more, depending on the amount of memory in your device.

For example, if you have a tablet with a small storage capacity, and it's limited to 1GB of memory, the system files will use less space than on a device with more than 1GB of memory.

In order to save extra space to reduce the overall size of Windows 10, you can remove or reduce the size of the hiberfil.sys file. Here's how:

  1. Open Start.
  2. Search for Command Prompt, right-click the result, and select Run as administrator.
  3. Type the following command to make Hiberfil.sys smaller and press Enter:powercfg /h /type reduced

The above command reduces the size of the hibernation file by 30 percent. If you want to remove the file completely, you can use the

powercfg /h /off

command instead.

If you want to change the hibernation settings back to the full amount, simply follow the same instructions, but on step No. 3, make sure to use this command

powercfg /h /size 100

.

Using this method, you'll be able to reclaim around 3GB of space and an additional 30 percent of the hiberfil.sys file.

While you can use Compact OS on any device, this is a feature designed to make the system files lighter on a low-cost device with limited storage. Also, using this method shouldn't affect system performance noticeably.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:

Mauro Huculak

Mauro Huculak has been a Windows How-To Expert contributor for WindowsCentral.com for nearly a decade and has over 15 years of experience writing comprehensive guides. He also has an IT background and has achieved different professional certifications from Microsoft, Cisco, VMware, and CompTIA. He has been recognized as a Microsoft MVP for many years.

Latest in Windows 10
Windows 10 Find My Device
How to enable Find My Device on Windows 10 to recover your PC if it's ever lost or stolen
Outlook Client Hero
Microsoft just made Windows 10 worse, and there's (almost) nothing you can do about it
Windows 10 Start menu on HP ZBook Studio G4
Microsoft will retroactively downgrade this part of Windows 10 next month
Former Microsoft Executive Vice President Terry Myerson stands in front of a presentation about Windows 10
Microsoft addresses the 'elephant in the room,' discusses upcoming end of Windows 10 support
Surface Hub 2S
Windows 10 for PCs is not the only version of Windows to reach end of support this year
Windows Insider program settings
Microsoft shuts down the Windows 10 Beta Channel just five months after reopening it
Latest in How-to
The First Berserker: Khazan
Is The First Berserker: Khazan on Xbox Game Pass?
Clair Obscur: Expedition 33
Is Clair Obscur: Expedition 33 on Xbox Game Pass?
A close-up of Hazel in South of Midnight
Is South of Midnight on Xbox Game Pass?
Atomfall screenshot
Atomfall: How to grab the best melee weapon and melee perk right away
Atomfall District B
Atomfall: How to open District B, get inside the Robot Facility, and grab the Signal Redirector
Atomfall District A photo
Atomfall: How to open District A and get inside the Medical Facility