Skip to content

How to compact your OS and free up extra space

Run the following commands in an elevated PowerShell

To turn on CompactOS:

Compact.exe /CompactOS:always

To turn off CompactOS:

Compact.exe /CompactOS:never

To Query whether CompactOS is on or off:

Compact.exe /CompactOS:Query


Source