Working with VHD files and converting them

 

To get VHD file type information from hyper-v machines you can use this oneliner. It lists vhd and vhdx files within a folder structure and lists if the disk is Fixed or dynamic in size.

To convert the files from a fixed format to a dynamic format, use the information from the last command.

I use the same file and folder name as the original but add an text before.

I use this for servers that are decommissioned but I do not want to delete. This way, they use not a lot of storage space.

Leave a Reply

Your email address will not be published. Required fields are marked *