Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
Redmond desk2 min

How to Enable Compact OS in Windows 11 and Reclaim Disk Space

Use an elevated command window to enable Compact OS, check its status, or reverse it. Learn what Windows file compression can—and cannot—free up.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To enable Compact OS on an installed Windows 11 system, open an elevated Command Prompt or Windows Terminal and run Compact.exe /CompactOS:always. Compact OS compresses Windows operating-system files; it does not clean personal files or installed apps, and Microsoft does not promise a fixed amount of space recovered.

What Compact OS changes

Compact OS stores Windows operating-system files in compressed form and runs Windows from those files. This can reduce the space used by the operating system, but it is not a general cleanup tool: downloads, photos, other personal files, and installed applications are not its target.

As an Amazon Associate I earn from qualifying purchases.

Microsoft’s guidance does not give a universal disk-space figure for Windows 11. The result depends on the installed system and its existing state. To assess the change on your PC, note the drive’s available space before enabling Compact OS and compare it afterward.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable Compact OS in Windows 11

  1. Open Start, search for Command Prompt or Windows Terminal, then choose Run as administrator. Approve the User Account Control prompt if it appears.
  2. Check the current setting by entering Compact.exe /CompactOS:Query and pressing Enter. Windows reports whether the system is in Compact state.
  3. To enable compression, run Compact.exe /CompactOS:always. Wait for the operation to finish; it may take time to process system files.
  4. Run Compact.exe /CompactOS:Query again to check the resulting state.

These runtime commands are documented in Microsoft’s Compact OS guidance and compact command reference.

#1 Best Overall
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]

Understand the performance tradeoff

Compressed files take fewer bytes to read from storage, while the processor must do additional work to decompress them. Microsoft says the balance depends on the relative performance of the storage device and processor, so Compact OS is not guaranteed to make every Windows 11 PC faster or slower. Microsoft’s note that newer devices, particularly those with solid-state storage, should see little performance downside is specifically about Windows IoT Enterprise; it is not a tested guarantee for every consumer PC.

Turn Compact OS off

To restore uncompressed operating-system binaries, run an elevated Command Prompt or Windows Terminal and enter Compact.exe /CompactOS:never. Allow the command to complete, then use Compact.exe /CompactOS:Query if you want to verify the state. Microsoft documents these options in its Compact OS guidance and compact command reference.

Rank #2
Sale
Microsoft Windows 11 (USB)
  • Less chaos, more calm. The refreshed design of Windows 11 enables you to do what you want effortlessly.
  • Biometric logins. Encrypted authentication. And, of course, advanced antivirus defenses. Everything you need, plus more, to protect you against the latest cyberthreats.
  • Make the most of your screen space with snap layouts, desktops, and seamless redocking.
  • Widgets makes staying up-to-date with the content you love and the news you care about, simple.
  • Stay in touch with friends and family with Microsoft Teams, which can be seamlessly integrated into your taskbar. (1)

Check an offline Windows installation

If you are managing a Windows installation that is not currently running, Microsoft documents querying its Compact OS state by specifying the Windows directory. For example, use Compact.exe /CompactOS:Query /WinDir:E:Windows and replace E:Windows with the actual directory containing that offline installation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

When Compact OS is not enough

Because Compact OS targets Windows operating-system files, it will not address storage taken up by personal data, applications, language resources, or optional features. Microsoft’s storage-footprint guidance covers those other categories. Check what is using the drive and choose a cleanup or removal method suited to that category rather than expecting OS compression to free all occupied space.

Rank #3
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
  • Lightweight and convenient: Lexar JumpDrive A30E (USB Type-A) boasts a slim, portable design for easy device compatibility; lightweight at 7.41 g
  • Transfer speeds up to 100 MB/s: 10x faster than standard USB 2.0 drives; Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions
  • Wide compatibility: Compatible with tablets, laptops, Macs, and traditional Type-A devices, no software installation required; Reliably stores photos, videos & files
  • Compact: Features a push-button retractor and a lanyard loop for on-the-go use
  • Enhanced security: Lexar DataShield protects files, easily creates a password-protected safe with auto-encryption; Files deleted from the safe are securely erased and can't be recovered
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Compact OS during Windows setup

Compact OS can also be chosen as part of Windows deployment. Windows Setup decides by default whether to use it automatically; the setup option /CompactOS specifies whether Setup installs compressed or uncompressed system files. This is distinct from enabling or disabling Compact OS on an already installed system with compact.exe. See Microsoft’s Windows Setup command-line options.

Quick Recap

SaleBestseller No. 2
Microsoft Windows 11 (USB)
Microsoft Windows 11 (USB)
Make the most of your screen space with snap layouts, desktops, and seamless redocking.; FPP is boxed product that ships with USB for installation
$124.97
Bestseller No. 3
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
Lexar A30E USB 3.2 Gen 1 Flash Drive 64GB 3-Pack
Compact: Features a push-button retractor and a lanyard loop for on-the-go use
$33.99
Rank #4
IMEASON Swivel Design 16GB USB Flash Drive with Keychain, USB 2.0 Portable Thumb Drive Memory Stick, FAT32 Format Flashdrive for Data Storage, Photos, Music, Files (Black, 16 GB)
  • 【16GB Flash Drive】USB flash drives with 16GB capacity, meet your needs of daily use on work, school, home and travelling for photos, music, videos, files storage and transfer. IMEASON thumb drives can be used to store different files, easy to data backup.
  • 【Metal Swivel Cap Design】USB thumb drive is metal swivel cover provides extra protection for the usb thumbdrive connector, no usb drive cap to lose; keychain design makes it easier to carry without worrying lose it.
  • 【Wide Compatibility】USB drive supports Windows 7/8/10/11 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, also Supports USB 2.0 and 1.1 ports. USB Stick support TV, desktop, notebook computer, car, audio and other device. The USB Memory Stick is your great data storage and transfer companion with traveling and working.
  • 【Easy to use】usb memory stick is plug and play without any software installation. Just simply plug the Flashdrive into the port of your USB-compatible devices such as computer, laptop to start data storage or transmission.
  • 【What You Get】16 GB USB Flash Drive Thumb Drive, The default format of the usb storage flash drive is FAT32.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.