Windows 10: Compress or Uncompress Windows 10 with Compact OS

Discus and support Compress or Uncompress Windows 10 with Compact OS in Windows 10 Tutorials to solve the problem; How to: Compress or Uncompress Windows 10 with Compact OS How to Compress or Uncompress Windows 10 with Compact OS Windows 10 includes tools to... Discussion in 'Windows 10 Tutorials' started by DavidY, Sep 10, 2015.

  1. DavidY Win User

    Compress or Uncompress Windows 10 with Compact OS


    How to: Compress or Uncompress Windows 10 with Compact OS

    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.

    *note You must be signed in as an administrator to be able 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 command below 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.

    *Arrow compact /compactos:query


    Compress or Uncompress Windows 10 with Compact OS [​IMG]


    Compress or Uncompress Windows 10 with Compact OS [​IMG]


    4. To Compress Windows 10 OS Binaries (system files)
    A) Copy and paste the command below into the command prompt, press Enter, and go to step 6 below.

    *note It can take a while to finish compressing.

    *Arrow compact /compactos:always


    Compress or Uncompress Windows 10 with Compact OS [​IMG]


    5. To Uncompress Windows 10 OS Binaries (system files)
    A) Copy and paste the command below into the command prompt, press Enter, and go to step 6 below.

    *note It can take a while to finish uncompressing.

    *Arrow compact /compactos:never


    Compress or Uncompress Windows 10 with Compact OS [​IMG]


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


    That's it,
    Shawn


    Related Tutorials

    :)
     
    DavidY, Sep 10, 2015
    #1
  2. shivj Win User

    How to free up disk space in Windows

    In answer to uncleClav, there has been no noticeable difference in speed or operations of the OS. And yes you can reverse the compress operation.

    See link. Compress or Uncompress Windows 10 with Compact OS

    Hope this helps
     
    shivj, Sep 10, 2015
    #2
  3. Windows 10 Apps default location

    I saved about 2GB by using the new Windows 10 Compact OS feature, which is only meant for flash storage and SSD's.

    At an Administrator Command prompt:

    compact /CompactOs:query <-- this will Query the system's Compact state.

    compact /CompactOs:always <-- This will Compress all OS binaries and set the system state to Compact

    /CompactOs Set or query the system's compression state. Supported options are:

    query - Query the system's Compact state.

    always - Compress all OS binaries and set the system state to Compact

    which remains unless administrator changes it.

    never - Uncompress all OS binaries and set the system state to non

    Compact which remains unless administrator changes it.
     
    Don Cuthbert, Sep 10, 2015
    #3
  4. lx07 Win User

    Compress or Uncompress Windows 10 with Compact OS

    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..
     
  5. DavidY Win User
    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.
     
    DavidY, Sep 10, 2015
    #5
  6. lx07 Win User
    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: $envCompress or Uncompress Windows 10 with Compact OS :programFiles $envCompress or Uncompress Windows 10 with Compact OS :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[/quote]
     
  7. Brink
    Brink New Member
    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.
     
    Brink, Sep 10, 2015
    #7
  8. MrBill Win User

    Compress or Uncompress Windows 10 with Compact OS

    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.
     
    MrBill, Nov 12, 2015
    #8
  9. lx07 Win User
    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
     
  10. Mansome Win User
    [/quote] Can someone post what the compact switches do that are listed in this post?
     
    Mansome, Nov 17, 2015
    #10
  11. Brink
    Brink New Member
    Hello Mansome,

    Here you go. *Smile


    Compress or Uncompress Windows 10 with Compact OS [​IMG]


    Compress or Uncompress Windows 10 with Compact OS [​IMG]
     
    Brink, Nov 17, 2015
    #11
  12. arachnaut Win User
    I encountered problems with PerfectDisk 14 boot-time defragmentation with the compact option on.
    The error was a blue-screen 'Process1_Initialization_Failed' error.

    When I turned it off, as the Perfect Disk support suggested, it worked OK.

    My laptop has it disabled because it has a Solid State drive. Usually the SSD firmware already compresses stuff that it deems appropriate, so this is quite understandable.

    I guess if you have plenty of disk space, there's no good reason to turn this on. Performance probably won't improve - the file may be smaller, but the decompress takes longer.

    I think this is one reason the Windows 10 startup time seemed to be getting longer - all those stuff getting decompressed...

    EDIT: Perfect Disk just got updated to fix this problem.
     
    arachnaut, Nov 27, 2015
    #12
  13. Compress or Uncompress Windows 10 with Compact OS

    Ran this last night on my 2-in-1 that has only a 32gb card as the primary. Gave me back 3gb of space after all the updates were ran, drivers installed, etc. Between doing a clean install to rid myself of HP bloat and compressing the OS I now have 16gb free. I flirted with removing IE and some other stuff, but there was no discernible difference. I'd love to get a couple more gb free. *Smile
     
    bbeelzebub, Dec 29, 2015
    #13
  14. Cloudtime Win User
    Thanks a lot for this useful information! *Smile

    [/quote] Can anyone please tell me how to use this code in a script with the compact command?
     
    Cloudtime, Apr 22, 2016
    #14
  15. Brink
    Brink New Member
    Hello Cloudtime, and welcome to Ten Forums. *Smile

    Here's how in a command prompt for those.


    Code: compact /c /s /a /f /q /i /exe:xpress16k %programFiles% compact /c /s /a /f /q /i /exe:xpress16k %programFiles(x86)% compact /c /s /a /f /q /i /exe:xpress16k %homeDrive%\MSOCache compact /c /s /a /f /q /i /exe:xpress16k %homePath%\Documents compact /c /s /a /f /q /i /exe:xpress16k %windir%\Assembly compact /c /s /a /f /q /i /exe:xpress16k %windir%\InfusedApps compact /c /s /a /f /q /i /exe:xpress16k %windir%\Installer compact /c /s /a /f /q /i /exe:xpress16k %windir%\Panther compact /c /s /a /f /q /i /exe:xpress16k %windir%\SoftwareDistribution compact /c /s /a /f /q /i /exe:xpress16k %windir%\System32\Catroot2 compact /c /s /a /f /q /i /exe:xpress16k %windir%\System32\LogFiles[/quote]
     
    Brink, Apr 22, 2016
    #15
Thema:

Compress or Uncompress Windows 10 with Compact OS

Loading...
  1. Compress or Uncompress Windows 10 with Compact OS - Similar Threads - Compress Uncompress Compact

  2. Excel file on compacted/compressed NTFS drive not opening

    in Windows 10 Network and Sharing
    Excel file on compacted/compressed NTFS drive not opening: I very recently compressed my drives recently to save space, but the first time I tried to open an Excel file, in one of my drives, instead of opening normally it just gave me a save option!!! and it could only save the file as *.xlsm, which I could not open either.I tried...
  3. Excel file on compacted/compressed NTFS drive not opening

    in Windows 10 Gaming
    Excel file on compacted/compressed NTFS drive not opening: I very recently compressed my drives recently to save space, but the first time I tried to open an Excel file, in one of my drives, instead of opening normally it just gave me a save option!!! and it could only save the file as *.xlsm, which I could not open either.I tried...
  4. Excel file on compacted/compressed NTFS drive not opening

    in Windows 10 Software and Apps
    Excel file on compacted/compressed NTFS drive not opening: I very recently compressed my drives recently to save space, but the first time I tried to open an Excel file, in one of my drives, instead of opening normally it just gave me a save option!!! and it could only save the file as *.xlsm, which I could not open either.I tried...
  5. Compression of OS experiment

    in Windows 10 Performance & Maintenance
    Compression of OS experiment: aspire one d150-1165 Intel Atom N270 / 1.6 Ghz / 533 MHz Mobile Intel 945GSE Express 2 gig ram / 200-pin DDR2 SDRAM Intel GMA 950 graphics bios Acer v1.05 2/20/2009 wdc wd1200bevs-22ust0 120 gig HDD took 5 hours 4 minutes to compress the drive ratio 1:6 using the command line...
  6. Compress OS

    in Windows 10 Performance & Maintenance
    Compress OS: Im cleaning my computer, and theres an option in windows own disk cleanup utility to compress the OS drive which will save me about 8 gb on my ssd. But it keeps saying that regardless of how many times i run it. Any way to fix it? 128099
  7. OS Drive Compression

    in Windows 10 Network and Sharing
    OS Drive Compression: Greetings, everyone. I am using an Aspire ES1-132, with a storage of 28.0 Gigabytes, and I am running short on storage space, and I could not relieve space from the laptop. I was told that I could compress my OS drive. I need to know if compressing my OS drive is a good...
  8. permanently disable Windows 10 compact OS feature

    in Windows 10 Performance & Maintenance
    permanently disable Windows 10 compact OS feature: Anybody can give a tip how to permanently disable Windows 10 compact OS feature? If I initiate manually: " compact /CompactOS: never " it will work for a day than the system automatically goes back to compact state again within a day (Windows 10 Home Version 1803) It's a...
  9. Add Compact OS Context Menu in Windows 10

    in Windows 10 Tutorials
    Add Compact OS Context Menu in Windows 10: How to: Add Compact OS Context Menu in Windows 10 How to Add Compact OS Context Menu in Windows 10 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....
  10. Compress or Uncompress Files and Folders in Windows 10

    in Windows 10 Tutorials
    Compress or Uncompress Files and Folders in Windows 10: How to: Compress or Uncompress Files and Folders in Windows 10 How to Compress or Uncompress Files and Folders in Windows 10 Windows 10 supports compression for individual files and folders on NTFS volumes using NTFS compression. While NTFS file system compression...

Users found this page by searching for:

  1. compress system files option

    ,
  2. compress uncompress os using compact