This tutorial will show you how to enable or disable Compact OS in Windows 10 and Windows 11.
Windows 10 and Windows 11 have tools and features that help you save disk space and optimize your image.
Compact OS compresses all operating system binaries and sets the system state to Compact, which remains unless administrator changes it.
When running CompactOS, Windows update can replace or remove individual files as needed to help maintain the drive footprint size over time.
You must be signed in as an administrator to enable or disable Compact OS.
Contents
- Option One: See if Compact OS is Currently Enabled or Disabled
- Option Two: Enable Compact OS
- Option Three: Disable Compact OS
1 Open Windows Terminal. and select either Windows PowerShell or Command Prompt.
2 Copy and paste the
compact /compactos:query
command into Windows Terminal (Admin), and press Enter. (see screenshots below)3 Look to see if the system is in the Compact state or not.
4 You can now close Windows Terminal (Admin) if you like.
1 Open Windows Terminal (Admin). and select either Windows PowerShell or Command Prompt.
2 Copy and paste the
compact /compactos:always
command into Windows Terminal (Admin), and press Enter. (see screenshot below)3 When finished, you can close Windows Terminal (Admin) if you like.
It can take a while to finish compressing.
1 Open Windows Terminal (Admin). and select either Windows PowerShell or Command Prompt.
2 Copy and paste the
compact /compactos:never
command into Windows Terminal (Admin), and press Enter. (see screenshot below)3 When finished, you can close Windows Terminal (Admin) if you like.
It can take a while to finish uncompressing.
That's it,
Shawn Brink
Last edited: