In Windows 10, Microsoft made some changes to the operating system to make it use less disk space. This was essential to compete with Android because Windows tablets with storage as small as 32 GB are being sold today and the experience on them is not optimal if the disk space starts to fill up. These changes should allow a bit more free space on mobile devices like phones and tablets, which are far more limited in disk resources than traditional laptops and desktops. In this article, we will see how to manage your Windows 10 installation and make it use less disk space using the optimizations Microsoft added.
For an already installed Windows 10 copy, run the following command from an elevated command line instance:
When you run this command, Windows 10 will compress its files. You can free up at least 1 to 1.5 GB of disk space with this. It can be disabled with the following command:
You can deploy Windows 10 using file compression enabled (compact OS) as follows:
- Format and partition the disk as required.
- Apply the OS image to an NTFS partition using DISM:
DISM.EXE /Apply-Image /ImageFile:INSTALL.WIM /Index:1 /ApplyDir:C:\ /Compact:ON
- Run BCDBOOT C:\WINDOWS to set up the OS to boot.
More details can be found HERE.
You can of course use many other optimizations to reduce the total amount of disk space taken by Windows 10:
- Make sure your C:\Windows\SoftwareDistribution\Download\ folder is empty.
- Run Disk Cleanup with administrator privileges regularly as we showed you earlier to clean up previous Windows installations including Insider Preview files if you are part of the program, Windows Update cleanup, error dumps and logs, System Restore data.
- Make sure your browser caches are empty and your %tmp% directory is clean.
- Compress your hibernation file.
- Turn off hibernation entirely if you have an SSD and use Sleep instead.
- Run DISM with the /resetbase option.
- Uninstall built-in Universal apps that you don't need.
- Uninstall any languages that you don't need.