System Enable or Disable Compact OS in Windows 10 and Windows 11


  • Staff
Compact_OS_banner.png

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.

This tutorial will show you how to enable or disable Compact OS in Windows 10 and Windows 11.


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


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.

CompactOS-query-1.png


CompactOS-query-2.png


CompactOS-query-3.png





Option Two

Enable Compact OS


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.


compactos_always.png





Option Three

Disable Compact OS


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.


compactos_never.png



That's it,
Shawn Brink
 

Attachments

  • Compact_OS.png
    Compact_OS.png
    19.7 KB · Views: 34
Last edited:

Rahulji

Member
Local time
6:00 AM
Posts
31
OS
Windows 11 21H2
So it compress only Windows Core files, while the rest remains untouched. So for common user gain is overal 20% or so?
 

My Computer

System One

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    AMD
    CPU
    Ryzen 5
    Motherboard
    Asus
    Memory
    4GB
    Graphics Card(s)
    GeForce
    Monitor(s) Displays
    DELL
    Keyboard
    MS

Brink

Administrator
Staff member
MVP
Thread Starter
Local time
11:00 PM
Posts
4,177
OS
Windows 11 Pro for Workstations
So it compress only Windows Core files, while the rest remains untouched. So for common user gain is overal 20% or so?

Hello, :)

Correct. It can be around that much. This is mostly designed to help those with low drive space. For example with tablets.

1640446764325.png


The table below shows the additional space saved by using compact OS, Single instancing, and reducing or turning Off Hiberfile on 2GB (x86 processor architecture) and 4GB (x64 processor architecture), on Windows 10, version 1607:

SIZE COMPARISONS

ImageWindows 10 Home x86, 2GB memoryWindows 10 Home x64, 4GB Memory
Base Footprint11.68GB15.06GB
Compact OS, with no single instancing8.85GB (>2.75GB savings)11.3GB (>3.7GB)
Compact OS, single instanced7.66GB (>4GB)10.09GB (>4.75GB)
Hiberfile off, no compact OS10.87GB (>825MB)13.48GB (>1.5GB)
Hiberfile reduced, no compact OS11.27GB (>400MB)14.15GB (>930MB)
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 980 PRO M.2,
    1TB Samsung 970 EVO Plus M.2,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Motorola MB8611 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S20 Ultra 5G phone
  • Operating System
    Windows 11 Pro for Workstations
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1
    CPU
    i7-1065G7 3.9 GHz
    Memory
    16 GB LPDDR4-3200
    Graphics card(s)
    Intel Iris Plus
    Sound Card
    Intel SST
    Monitor(s) Displays
    13.3" 4K UWVA AMOLED multitouch
    Screen Resolution
    3840 x 2160
    Hard Drives
    512 GB PCIe NVMe M.2 SSD
    Browser
    Google Chrome
    Antivirus
    Windows Defender and Malwarebytes Premium
Top Bottom