You run a Windows 2012 R2 Hyper-V Role Server, you need to shrink the size of files.vhd.
Which PowerShell cmdlet option you should run first?
A.
Dismount-VHD
B.
Mount-VHD
C.
Resize-VHD
D.
Convert-VHD
You run a Windows 2012 R2 Hyper-V Role Server, you need to shrink the size of files.vhd.
Which PowerShell cmdlet option you should run first?
You run a Windows 2012 R2 Hyper-V Role Server, you need to shrink the size of files.vhd.
Which PowerShell cmdlet option you should run first?
A.
Dismount-VHD
B.
Mount-VHD
C.
Resize-VHD
D.
Convert-VHD
Answer should be C. Resize-VHD
https://technet.microsoft.com/en-us/library/hh848535.aspx
Convert-vhd is incorrect. This is used to convert a VHD to a VHDX. If the the question asked to increase the size of the disk to a size larger than 2TB, then you would have to convert prior to resizing.
https://technet.microsoft.com/en-us/library/hh848454.aspx
I thing tha we can’t shrink the siez of files .vhd but .vhdx
the answer is D
first, you have to convert the vhd file to a xvhd file.
example from https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/resize-vhd
Resize-VHD -Path c:\BaseVHD.vhd -SizeBytes 1TB
@moses I believe that there is a mistake in the example you gave above. Saw the link and it states that you can only Shrink .VHDX and infact only the first example has.vhd, all the other examples have .vhdx.
D must be the answer