Tag Archives: compact

HOWTO compact vhd/vhdx Hyper-V files

It happened that the usual compact disk from Hyper-V Console doesn’t seem to be effective on one of my .vhdx file. Looking around on the web, I discovered that it is a quite common problem. The solution is to open a Powershell window with administrative access rights, and use the following command: optimize-vhd <offline Hyper-V disk file> -mode full For further details about this command, … Continue reading HOWTO compact vhd/vhdx Hyper-V files »

HOWTO compress a folder by command line

NTFS file system has the ability to compress files and folders to save disk space.  The only drawback is that they will be read and written slower than the normal ones. Windows File Explorer displays them in blue instead of black, and it allows you to compress or expand by right-clicking them and selecting ‘Properties’ and then ‘Advanced’. Suppose that you have to compress a … Continue reading HOWTO compress a folder by command line »