TechBuzzPro

Compact OS in Windows 10 and 11: How to Enable or Disable

· 4 min read · Windows & PC

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can turn Compact OS on or off in Windows 10 and Windows 11 to save disk space by compressing system files. This feature uses a compression algorithm that reduces the size of core operating system files without affecting performance significantly. When enabled, it can reclaim several gigabytes of storage, which is helpful on devices with limited SSD capacity. However, disabling it restores files to their original size and may be necessary for troubleshooting or compatibility. You must run Command Prompt as an administrator to make changes, and the system may require a reboot to complete the operation.

What You'll Need

  • Administrator access to the Windows PC
  • Command Prompt opened with administrative privileges
  • At least 10–15 minutes of uninterrupted time (the process can take several minutes)
  • Stable power supply (especially important on laptops to avoid interruption)

Step-by-Step

  1. Press the Windows key, type "cmd", then right-click on "Command Prompt" and select "Run as administrator". If prompted by User Account Control, click "Yes" to allow the app to make changes.
  2. In the Command Prompt window, type the following command to check the current status of Compact OS and press Enter:
    compact.exe /compactos:query
    This will return one of three results: "CompactOS is off", "CompactOS is on", or "CompactOS is eligible".
  3. If you want to enable Compact OS, enter this command and press Enter:
    compact.exe /compactos:always
    The system will begin compressing system files. This process can take 10–20 minutes depending on your drive speed and system files size. Do not interrupt it.
  4. If you want to disable Compact OS, enter this command and press Enter:
    compact.exe /compactos:never
    The system will decompress all previously compressed system files. This also takes time and disk activity will be high during the process.
  5. Wait for the process to complete. You’ll see a message like "Operation completed successfully" when done.
  6. Restart your computer to ensure all system components recognize the change.
  7. After reboot, reopen Command Prompt as administrator and run the query command again to confirm the new status:
    compact.exe /compactos:query

Common Mistakes

  • Not running Command Prompt as administrator: The commands will fail or return access denied errors if elevated privileges are missing.
  • Interrupting the compression or decompression process: Turning off the PC or closing the window mid-process can lead to system instability or corrupted files.
  • Expecting immediate results: The operation runs in the background and may appear slow. Patience is required.
  • Confusing Compact OS with Disk Cleanup or Storage Sense: These are different tools. Compact OS specifically targets system files, not user files or temporary data.
  • Assuming all drives are affected: Compact OS only applies to the Windows installation drive (usually C:).

Tips

  • Check free disk space before and after enabling Compact OS using Settings > System > Storage to see the impact.
  • Use the query command frequently to monitor status, especially after updates or system changes.
  • Consider enabling Compact OS on devices with 128 GB or smaller SSDs where space is limited.
  • Disabling Compact OS may be necessary if you plan to run certain low-level system tools or encounter update errors related to file access.
  • Some Windows updates may temporarily disable or re-enable Compact OS. Verify the status after major updates.

Troubleshooting

If the command fails with an "access denied" error, ensure you are using an administrator Command Prompt. Close any other command windows and retry. If the system is unresponsive during compression or decompression, wait at least 30 minutes before assuming failure—some systems take longer, especially with mechanical drives.

If the process appears stuck, open Task Manager and check disk and CPU usage. If activity is near zero for over 15 minutes, restart the PC and rerun the command. After reboot, the system may resume or require a fresh start.

If Compact OS won’t turn off, run the command in Safe Mode. Boot into Safe Mode by holding Shift while clicking Restart in the Start menu, then navigate to Troubleshoot > Advanced Options > Startup Settings > Restart. Press F4 to enter Safe Mode, then run the command again.

If you receive a message that the operation is not supported, your edition of Windows may not support Compact OS (some older or specialized editions lack this feature). Also, the drive must be using the NTFS file system—Compact OS does not work on exFAT or FAT32.

Frequently Asked Questions

Does Compact OS slow down my computer?

No, not noticeably. Windows uses efficient compression that has minimal impact on modern CPUs. The performance trade-off is negligible for most users.

Can I enable Compact OS on Windows 11 Home?

Yes, Compact OS is available in all editions of Windows 10 and Windows 11, including Home, Pro, and Enterprise.

How much space does Compact OS save?

Typically between 1.5 GB and 4.5 GB, depending on system files and updates installed. The exact amount varies by device and configuration.

Does Compact OS compress my personal files?

No, it only compresses core operating system files. Your documents, photos, and apps are unaffected.

Can I schedule Compact OS to run automatically?

No, there is no built-in scheduler. The feature is either on or off. Once enabled, compression remains active.

Will disabling Compact OS delete any data?

No, it only decompresses system files. No data is lost, but the process increases disk usage by restoring original file sizes.