/
/

How to Enable or Disable Compact OS in Windows 11

by Angelo Salandanan, IT Technical Writer
How to Enable or Disable Compact OS in Windows 11 blog banner image

Key Points

Enable or Disable Compact OS in Windows

  • Check Compact OS status:
    • Run exe /compactos:query in an elevated Command Prompt.
    • Displays whether Windows is currently using Compact OS compression.
  • Enable Compact OS to save space:
    • Run exe /compactos:always.
    • Ideal for devices with limited storage, virtual machines, kiosks, or embedded systems.
    • Reboot to apply changes.
  • Disable Compact OS for better performance:
    • Run exe /compactos:never.
    • Recommended when ample disk space is available or when performance is more important than storage savings.
    • Reboot after disabling.
  • Understand Compact OS benefits and risks:
    • Compresses Windows system files to reduce installation size.
    • May increase CPU usage and slightly impact boot or app load times, especially on older hardware.

Windows Compact OS is one of the advanced solutions that power users have for local storage issues. IT administrators also use it to set up endpoints in enterprise or kiosk environments. However, compression can also compromise performance and system stability in some scenarios. In this guide, we’ll review those instances and explain how and when to enable or disable Compact OS.

Prerequisites and methods for managing Compact OS

Here are some system and access requirements to keep in mind to avoid roadblocks.

✔️ You will need administrator privileges for setup.

✔️ You must have Compact OS enabled. Check out this deployment guide from Microsoft.

✔️ Compact OS is supported on both Windows 10 and Windows 11.

If you’re unsure if Compact OS is already active, follow these steps:

  1. Type cmd in Windows Search, select Command PromptRun as administrator.
  2. Run the compact.exe /compactos:query command to display the Compact OS status.

We recommend creating a backup of your system before making any changes. Take a look at these two common backup solutions.

🥷 Tip: Also, consider creating an elevated Command Prompt shortcut for future use.

How to enable Compact OS

Use the following command in an elevated Command Prompt to enable Compact OS:

  1. Type cmd in Windows Search, select Command PromptRun as administrator.
  2. Run the compact.exe /compactos:always command to enable Compact OS.

This action may take several minutes to apply. It’s also recommended to reboot the system once the process has been completed.

When should you enable Compact OS?

Switching to Compact OS is ideal for storage-constrained systems or when preparing minimal deployment images.

  • Devices with limited storage.
  • Windows installations for embedded, VMs, IoT, or kiosk environments.
  • Scenarios where sacrificing raw performance isn’t as critical as storage.

How to disable Compact OS

To revert to standard (uncompressed) OS, use the following command:

  1. Type cmd in Windows Search, select Command PromptRun as administrator.
  2. Run the compact.exe /compactos:never command to disable Compact OS.

This action restores the system to its full installation size. It’s also recommended to reboot the device once the process has been completed.

When should you avoid Compact OS?

You can revert to the standard settings if you encounter performance issues or if storage space is no longer a challenge.

  • Systems with ample disk space.
  • Systems or environments where performance is a priority.
  • Scenarios requiring frequent servicing or advanced OS customization.

Compact OS usage tips and additional considerations

Performance impact

Enabling Compact OS comes at the cost of performance due to an increase in CPU usage (e.g., longer boot process, slower app launch times).

This is most noticeable in older or underpowered hardware.

Disk Cleanup compatibility

Compact OS can be used with Windows utility tools like Disk Cleanup and Storage Sense.

These programs will not attempt to decompress files used by Compact OS. As a result, they can still remove temporary files. This includes old updates, Recycle Bin content, and delivery optimization files without disrupting the core system.

Image deployment

Compact OS can be used with Sysprep and DISM to create custom Windows images for various environments. The setup will be retained after Sysprep. This is because compression will not be modified during the generalization process.

BitLocker

Compact OS and BitLocker are compatible, but compression may impact encryption speed during initial setup.

Windows updates

System update installation is generally slower in Compact OS due to on-the-fly decompression. You can use test devices to validate this behavior and prepare for possible compatibility issues.

Making the most out of Windows Compact OS

Windows Compact OS is another excellent built-in utility feature that administrators can deploy. It helps with managing endpoints or streamlining performance. However, it must be used in a limited capacity. Especially as some devices and scenarios don’t benefit from data compression.

With that in mind, if you’re still looking for an alternative way to manage device storage, consider moving some files and data into cloud storage. This is to manage internal memory, while keeping important files accessible on demand.

Quick-Start Guide

You could accomplish this through:

  1. A custom script: NinjaOne supports running PowerShell scripts that could modify Compact OS settings.
  2. Manual configuration: You would need to use Windows native tools or PowerShell commands to enable/disable Compact OS.

FAQs

Compact OS is a built-in Windows feature that compresses system files to reduce the overall installation size, freeing up disk space without removing components or apps.

Open Command Prompt as Administrator and run compact.exe /compactos:query. Windows will display whether Compact OS is enabled, disabled, or automatically managed by the system.

Run compact.exe /compactos:always in an elevated Command Prompt, then restart your PC. This enables compression and reduces Windows’ footprint—ideal for low-storage devices, kiosks, or virtual machines.

Run compact.exe /compactos:never from an elevated Command Prompt, then reboot. This restores Windows to full size, which can improve speed on devices with sufficient storage.

Yes—while Compact OS saves space, it can slightly increase CPU usage and lengthen boot or load times, especially on older or low-power hardware.

You might also like

Ready to simplify the hardest parts of IT?