Compress Windows System Files with CompactOS
Use compact /compactos to enable built-in OS file compression — a forgotten way to free several GB on small SSDs.
01Command
$ compact /compactos:query
compact /compactos:always02What it does
CompactOS compresses Windows system files and installed binaries with XPRESS/LZX transparent compression, unlike NTFS folder compression which targets user files. Windows often enables it automatically on drives under 32 GB, but it is safe and useful on larger drives too. Query first, then enable or disable with /always and /never; the recompression pass takes 10-20 minutes but requires no reboot.
03Risk
04Undo
$ compact /compactos:never05Sources
- compact - SS64Evidence: Reference for compact.exe including CompactOS mode and per-file compression options.
- compactEvidence: Documents the /compactos:query|always|never switches for OS-level compression.
Last verified: 2026-09-17 · Category: System & Settings
06Related solutions
One command that shows OS version, install date, boot time, memory, network adapters and installed hotfixes.
Built-in Windows command to compute MD5, SHA1 or SHA-256 hashes of any file.
Remove hidden, system and read-only flags from files or whole directory trees.