Skip to content
Follow
Windows

How to Turn On or Off Compact OS in Windows 11

Richard
Written by
Richard
Mar 12, 2026 Updated Sep 15, 2026 3 min read
How to Turn On or Off Compact OS in Windows 11
How to Turn On or Off Compact OS in Windows 11

Compact OS in Windows 11 compresses your core operating system files to free up roughly 2 GB of storage space on your hard drive. This built-in feature works best on small solid-state drives without slowing down your PC.

Advertisement

You can turn Compact OS on or off using the Command Prompt whenever your computer runs low on room for apps and games.

⚡ Quick Answer

You can turn Compact OS on or off using Windows Terminal with administrator privileges. Run the command compact /compactos:always to enable it or compact /compactos:never to disable it. Check the current status with compact /compactos:query.

Advertisement

Important Things to Know

  • Admin privileges required — You must be logged in as an administrator to make these changes.
  • This process takes time — Windows needs a few minutes to compress or uncompress your files, so be patient.

Step 1Check if Compact OS is On or Off

You can check if Compact OS Windows is currently turned on or off by running a quick command in Windows Terminal. Open Windows Terminal with administrator rights, type the query command, and press Enter to see the current compression status of your system files.

  1. Click the Start button .
  2. Type Windows Terminal.
  3. Right-click it and choose Run as administrator. ⚠️ Admin privileges required
  4. In the window that opens, copy and paste this command, then press Enter:

    compact /compactos:query
  5. Read the message:
    • If it says “Compact OS is enabled.” — it’s turned on.
    • If it says “Compact OS is disabled.” — it’s turned off.
  6. Close Windows Terminal when done.
Windows Terminal showing Compact OS status query command result
Windows Terminal showing Compact OS status query command result

Step 2How to Turn On Compact OS

You can turn on Compact OS Windows to save disk space by compressing system files that Windows uses to run. Open Windows Terminal as an administrator, enter the specific activation command, and wait a few minutes while Windows shrinks the files.

Advertisement

Windows compresses the system files during a process that requires a brief wait.

  1. Open Windows Terminal as an administrator (follow Step 1 above). ⚠️ Admin privileges required
  2. Copy and paste this command, then press Enter:

    compact /compactos:always
  3. Wait while Windows compresses your files. This may take several minutes.
  4. Close the window when finished.

Step 3How to Turn Off Compact OS

You can turn off Compact OS Windows to decompress your system files and return them to their original size. Open Windows Terminal as an administrator, run the deactivation command, and give Windows a few minutes to rewrite the data.

Decompressing files takes a few minutes as Windows rewrites data for every file.

  1. Open Windows Terminal as an administrator. ⚠️ Admin privileges required
  2. Copy and paste this command, then press Enter:

    compact /compactos:never
  3. Wait while Windows uncompresses the files. This can take several minutes.
  4. Close the window when done.

Summary

  • You must have administrator access to use Compact OS.
  • Compact OS saves disk space by squeezing Windows system files smaller.
  • Use these simple commands in Windows Terminal:
    • Check status: compact /compactos:query
    • Turn on: compact /compactos:always
    • Turn off: compact /compactos:never
  • Exercise patience because compressing or decompressing files takes time.
  • Always check the status after running a command to verify the outcome.

Compact OS Windows is a built-in feature that saves valuable hard drive space by shrinking system files using simple Windows Terminal commands. You can check your current status, turn compression on, or turn it off whenever your storage needs change.

Advertisement

What is a Windows compact OS?

Compact OS is a built-in Windows feature that compresses system files. This reduces the overall size of your Windows installation and frees up disk space, all without removing any components or apps.

What is the 🪟 Windows 7 Compact OS?

No, that is an entirely separate operating system designed for industrial devices and enterprise hardware.

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Enable or Disable Closing Warnings in Windows Terminal
Windows How to Enable or Disable Closing Warnings in Windows Terminal
How to Change Windows Terminal Launch Size
Windows How to Change Windows Terminal Launch Size
How to Choose Where Windows Search for Files in Windows 11
Windows How to Choose Where Windows Search for Files in Windows 11
How to Set Windows Terminal to Open with Command Prompt on Windows 11
Windows How to Set Windows Terminal to Open with Command Prompt on Windows 11

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *