To check the running Windows installation, open Command Prompt and run compact.exe /CompactOS:query. To check an offline Windows installation, such as one viewed from Windows PE, include its Windows directory: compact.exe /CompactOS:query /WinDir:E:Windows. Replace that path with the actual location of the offline installation.
Check Compact OS on the running Windows installation
- Open Command Prompt.
- Run
compact.exe /CompactOS:query. - Read the result to see whether the system is in Compact OS state.
Microsoft documents /CompactOS as an option that sets or queries the system’s compression state. Use query for a status check: Microsoft’s compact command reference lists always and never as state-changing options, not alternatives for checking status.
As an Amazon Associate I earn from qualifying purchases.
Query an offline Windows installation
If the Windows installation is not currently running—for example, you are inspecting it from Windows PE—specify the path to that installation’s Windows directory:
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchcompact.exe /CompactOS:query /WinDir:E:Windows
Replace E:Windows with the correct directory. Microsoft documents /WinDir for querying an offline operating system and provides an example in its Compact OS documentation.
#1 Best Overall
- 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]
Measure compression for a selected set of files
The compact command can report compression information for a directory or files. To include subdirectories, use /S; to include hidden and system files, use /A. For example, to report recursively for a chosen directory while including hidden and system files, run:
compact.exe /S /A "C:pathtofolder"
Replace the example path with the directory you want to examine. The reported figures describe the files within that selected scope and the options you used. They are not an official, complete Compact OS savings total for the entire Windows installation. The /CompactOS:query status check answers a different question: whether the system is using Compact OS.
Rank #2
- 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)
Interpret a disk-space figure cautiously
Microsoft’s documentation does not establish a universal number of gigabytes saved by Compact OS or a standard method for measuring savings across a whole installation. A file-compression report can help describe a particular tree, but its totals depend on which paths and files are included. Hidden and system-file inclusion, in particular, changes the report’s scope.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsIf you record a local figure, identify the Windows version, the paths included, whether hidden and system files were counted, the reporting method, and whether the result is an estimate or a before-and-after observation. Comparisons are meaningful only when those details match.
Rank #3
- 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
What the status result does—and does not—tell you
Compact OS keeps operating system files compressed. Microsoft notes that performance depends on the relative performance of the device’s processor and storage, so a Compact OS status result alone does not predict the effect on a particular PC. The query is a state check, not a performance test or a measurement of total disk space recovered.
Quick Recap
Rank #4
- 【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.




