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

%3CLINGO-SUB%20id%3D%22lingo-sub-1326265%22%20slang%3D%22en-US%22%3EWhat%20is%20difference%20between%20File%20size%20and%20Size%20in%20the%20output%20of%20GET-VHD%20command%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1326265%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20resizing%20VHD%20using%20Resize-VHD%20command%2C%20the%20property%20SizeinBytes%20is%20accepting%20value%20greater%20than%20the%20%22Size%22%20property%20in%20the%20output%20of%20the%20GET-VHD%20command.%20But%20my%20actual%20size%20of%20VHD%20is%20in%20%22FileSize%22%26nbsp%3B%20property.%20I%20am%20unable%20to%20figure%20out%20the%20relation%20between%20File%20size%20and%20Size.%3C%2FP%3E%3CP%3EI%20would%20be%20glad%20to%20know%20the%20relation%20between%20the%20FileSize%20and%20Size%20properties%20or%20the%20unit%20of%20Size%20property%20(Kb%2FMb%2Fany%20other%20related).%3C%2FP%3E%3CP%3EThank%20you%20in%20advance%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Fhtml%2Fimages%2Femoticons%2Fsmile_40x40.gif%22%20alt%3D%22%3Asmile%3A%22%20title%3D%22%3Asmile%3A%22%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1326265%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHyper-V%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eresize-vhd%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESize%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evhd%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Evhdx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1327479%22%20slang%3D%22en-US%22%3ERe%3A%20What%20is%20difference%20between%20File%20size%20and%20Size%20in%20the%20output%20of%20GET-VHD%20command%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1327479%22%20slang%3D%22en-US%22%3E%3CP%3ESize%20is%20that%20you%20%22allocated%22%20when%20creating%20the%20drive%2C%20or%20the%20maximum%20size%20it%20can%20reach%20without%20resizing%2C%20FileSize%20is%20what%20is%20currently%20used.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Visitor

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 commandOutput of Get-VHD command

 Thank you in advance:smile:

1 Reply

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