Installing Windows 11 on devices with compact solid-state drives—such as 64 GB or 128 GB eMMC laptops, handheld gaming consoles, or dual-boot partitions—frequently leads to low disk space warnings. Even after running standard Disk Clean-up utilities, removing temporary caches, and clearing browser history, the core Windows operating system files and component store (WinSxS) consume tens of gigabytes of vital local storage.
Windows 11 includes a native operating system compression mechanism named Compact OS. Managed through the built-in compact.exe command-line utility, Compact OS compresses base system binaries and Windows runtime files using hardware-accelerated algorithms, reclaiming several gigabytes of drive space with virtually zero perceptible impact on day-to-day desktop performance.
How Compact OS Works
Compact OS replaces the legacy WIMBoot (Windows Image Boot) technology used in earlier Windows generations. Instead of running system files from an isolated read-only archive file, Compact OS applies file-level XPRESS or LZX compression algorithms directly to files residing on the primary NTFS system volume:
- Individual operating system binaries (such as DLLs, system executables, and drivers) are compressed individually.
- Modern multi-core processors decompress these files into RAM on demand in milliseconds during execution.
- Windows Updates continue to install seamlessly, with the servicing stack automatically re-compressing modified replacement binaries.
- Unlike whole-drive BitLocker or standard NTFS folder compression, Compact OS is tailored specifically for core operating system components.
Checking Your Current Compact OS Status
Before initiating compression, determine whether Windows 11 is already running in a compressed state (many budget OEM machines enable this by default):
- Right-click the Start button on the taskbar and select Terminal (Admin) or PowerShell (Admin).
- Enter the following query command:
compact.exe /compactos:query
The utility will evaluate your system configuration and return one of two primary responses:
- “The system is not in the Compact state, but may become compact as needed.” (System files are currently uncompressed).
- “The system is in the Compact state.” (System files are already compressed).
Enabling Compact OS to Reclaim Disk Space
If your system is not currently compressed and you need to free up storage space immediately:
- Ensure your computer is connected to AC mains power (compression involves sustained disk read/write operations).
- In your elevated Terminal window, run the following command:
compact.exe /compactos:always
The command will begin compressing operating system binaries. The process typically takes between 5 and 15 minutes depending on CPU speed and drive throughput (NVMe SSDs process significantly faster than eMMC flash drives).
Upon completion, the tool will display the total number of compressed files and indicate the exact storage footprint saved (often between 2 GB and 5 GB).
Disabling Compact OS and Returning to Standard State
If you later upgrade to a larger storage drive or prefer to run all operating system binaries completely uncompressed for competitive benchmarking:
compact.exe /compactos:never
The utility will decompress all system files back to their uncompressed formats, restoring standard disk occupancy.
Compact OS Command Syntax Quick Reference
| Command | Action Performed | Typical Duration |
|---|---|---|
compact /compactos:query |
Checks whether system compression is active. | Instant (< 2 seconds) |
compact /compactos:always |
Compresses all eligible Windows system files. | 5–15 minutes |
compact /compactos:never |
Decompresses system files back to default state. | 5–15 minutes |
Compact OS provides an efficient, officially supported method for reclaiming essential gigabytes on compact Windows 11 drives without modifying system registries or compromising OS stability.