Forum Discussion

Sainag_Chunduru's avatar
Sainag_Chunduru
Copper Contributor
Apr 21, 2020

What is difference between File size and Size in the output of GET-VHD command?

In resizing VHD using Resize-VHD command, the property SizeinBytes is accepting value greater than the "Size" property in the output of the GET-VHD command. But my actual size of VHD is in "FileSize"  property. I am unable to figure out the relation between File size and Size.

 

I would be glad to know the relation between the FileSize and Size properties or the unit of Size property (Kb/Mb/any other related). 

Output of Get-VHD command

 Thank you in advance:smile:

  • Size is that you "allocated" when creating the drive, or the maximum size it can reach without resizing, FileSize is what is currently used. 

Resources