Compress or Uncompress Windows 10 with Compact OS  

Page 1 of 4 123 ... LastLast
    Compress or Uncompress Windows 10 with Compact OS

    Compress or Uncompress Windows 10 with Compact OS

    How to Compress or Uncompress Windows 10 with Compact OS
    Published by Category: General Tips
    05 Feb 2020
    Designer Media Ltd

    How to Compress or Uncompress Windows 10 with Compact OS


    Windows 10 includes tools to help you use less drive space. You can now compress the files for the entire operating system, including your preloaded desktop applications. Compact OS lets you run the operating system from compressed files (similar to WIMBoot in Windows 8.1 Update 1), and single-instancing helps you run your pre-loaded Windows desktop applications in compressed files. The new processes helps maintain a small footprint over time by using individual files, rather than combining them in a WIM file.

    Windows 10 can efficiently compress system files. That gives back approximately 1.5GB of storage for 32-bit and 2.6GB of storage for 64-bit Windows.

    Compact OS is supported on both UEFI-based and Legacy BIOS-based Windows 10 installations.

    For more details about Compact OS in Windows 10, see:

    This tutorial will show you how to use Compact OS to manually compress or uncompress your Windows 10 system.

    You must be signed in as an administrator to use Compact OS.





    Here's How:

    1 Open an elevated command prompt.

    2 Do step 3 (query), step 4 (compress), or step 5 (uncompress) below for what you would like to do.


    3 To Query Current System Compact State

    A) Copy and paste the compact /compactos:query command into the command prompt, press Enter to see if your Windows 10 is currently in the compact state (compressed), and go to step 4 (compress), step 5 (uncompress), or step 6 below.

    Compress or Uncompress Windows 10 with Compact OS-compact_query-1.png
    Compress or Uncompress Windows 10 with Compact OS-compact_query-2.png


    4 To Compress Windows 10 OS Binaries (system files)

    A) Copy and paste the compact /compactos:always command into the command prompt, press Enter, and go to step 6 below.

    It can take a while to finish compressing.

    Compress or Uncompress Windows 10 with Compact OS-compress_command.png


    5 To Uncompress Windows 10 OS Binaries (system files)

    A) Copy and paste the compact /compactos:never command below into the command prompt, press Enter, and go to step 6 below.

    It can take a while to finish uncompressing.

    Compress or Uncompress Windows 10 with Compact OS-uncompress_command.png


    6 When finished, you can close the elevated command prompt if you like.


    That's it,
    Shawn






  1. Posts : 1,524
    Windows 10 Pro (32-bit) 16299.15
       #1

    An alternative message you might get from ":query" option is this:
    Compress or Uncompress Windows 10 with Compact OS-compactosquery.png

    I'm assuming it would be potentially harmful to performance to switch on compactos if this message comes up.
      My Computer


  2. Posts : 5,478
    2004
       #2

    DavidY said:
    I'm assuming it would be potentially harmful to performance to switch on compactos if this message comes up.
    Maybe, maybe not. When I upgraded my OS was compacted, when I clean installed on same hardware it wasn't. I did an in-place upgrade and it was again.... The exact conditions that the system uses to decide aren't documented that I can see - some combination of RAM/CPU/Free Space/Disk

    You can always try it and turn it off again if it is slower. It may even be faster (slow disk, fast CPU for example) - it depends on your specific set-up..
      My Computer


  3. Posts : 1,524
    Windows 10 Pro (32-bit) 16299.15
       #3

    halasz said:
    Maybe, maybe not. When I upgraded my OS was compacted, when I clean installed on same hardware it wasn't. I did an in-place upgrade and it was again.... The exact conditions that the system uses to decide aren't documented that I can see - some combination of RAM/CPU/Free Space/Disk
    Actually I had the same - I have a tablet which was running 8.1, and when I upgraded, CompactOS was on, but after a clean-install it wasn't.

    In my case I'm assuming it was because the clean-install didn't have the right drivers (I had to add some manually), and my best guess was that the disk didn't look like a solid-state device and that tipped the balance so it decided not to compact.
      My Computer


  4. Posts : 5,478
    2004
       #4

    DavidY said:
    In my case I'm assuming it was because the clean-install didn't have the right drivers (I had to add some manually)
    It could be drivers - I had to add some also - I just assumed free space. Really I don't know though.

    If your interested in saving more space I've also compacted these directories with compact /c /s /a /f /q /i /exe:xpress16k ... I've not seen any performance difference but it saves a lot of space, especially if you have Office...

    Most other big directories I've tried seem to stop Windows booting or otherwise behave badly (programdata, appdata, system32\driverstore\filerepository for example) but these work OK.

    Code:
    $env:programFiles
    $env:programFiles(x86)
    $env:homeDrive\MSOCache
    $env:homeDrive$env:homePath\Documents
    $env:windir\Assembly
    $env:windir\InfusedApps
    $env:windir\Installer
    $env:windir\Panther
    $env:windir\SoftwareDistribution
    $env:windir\System32\Catroot2
    $env:windir\System32\LogFiles
      My Computer


  5. Posts : 70,904
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #5

    DavidY said:
    An alternative message you might get from ":query" option is this:
    Compress or Uncompress Windows 10 with Compact OS-compactosquery.png

    I'm assuming it would be potentially harmful to performance to switch on compactos if this message comes up.
    Yeah, that's pretty much just a generic message basically meaning that Windows determined that you didn't needed to compress.

    It doesn't mean that it will hurt or improve performance.
      My Computers


  6. Posts : 112
       #6

    Thank you for this post ! I decided to try out a super cheap laptop with only 32GB as a travel device. Bad idea. mostly because Windows 10 really needs a 64GB drive if you want to install some standard apps and still have enough room for performance. That said, this device came with the OS compacted. I decided to turn that off and see what the performance is like since task manager showed compression as a major resource sucked. Long story short, uncompressing only cost me 1GB is space. Before that Windows 10 was using 10GB of space. So the net gain on compression was only 10%, not at all worth it. Personally, I would keep the OS uncompressed.
      My Computer


  7. Posts : 5,478
    2004
       #7

    MrBill said:
    I decided to turn that off and see what the performance is like since task manager showed compression as a major resource sucked.
    Did you find any performance difference? In my testing I've found uncompressed to be the slowest even if you have SSD (not that it would always be the case). See this thread for example Any useful scenario for NTFS compression? - Page 2 - Windows 10 Forums
      My Computer


  8. Posts : 68
    Windows 10
       #8

    lx07 said:
    It could be drivers - I had to add some also - I just assumed free space. Really I don't know though.

    If your interested in saving more space I've also compacted these directories with compact /c /s /a /f /q /i /exe:xpress16k ... I've not seen any performance difference but it saves a lot of space, especially if you have Office...

    Most other big directories I've tried seem to stop Windows booting or otherwise behave badly (programdata, appdata, system32\driverstore\filerepository for example) but these work OK.

    Code:
    $env:programFiles
    $env:programFiles(x86)
    $env:homeDrive\MSOCache
    $env:homeDrive$env:homePath\Documents
    $env:windir\Assembly
    $env:windir\InfusedApps
    $env:windir\Installer
    $env:windir\Panther
    $env:windir\SoftwareDistribution
    $env:windir\System32\Catroot2
    $env:windir\System32\LogFiles
    Can someone post what the compact switches do that are listed in this post?
      My Computer


  9. Posts : 70,904
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #9

    Hello Mansome,

    Here you go. :)

    Compress or Uncompress Windows 10 with Compact OS-compact-1.png
    Compress or Uncompress Windows 10 with Compact OS-compact-2.png
      My Computers


 

Tutorial Categories

Compress or Uncompress Windows 10 with Compact OS Tutorial Index Network & Sharing Instalation and Upgrade Browsers and Email General Tips Gaming Customization Apps and Features Virtualization BSOD System Security User Accounts Hardware and Drivers Updates and Activation Backup and Restore Performance and Maintenance Mixed Reality Phone


  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:05.
Find Us




Windows 10 Forums