Installing and Configuring Windows Server 2012 — Question 11
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?
Answer options
- A. Dismount-VHD
- B. Mount-VHD
- C. Resize-VHD
- D. Convert-VHD
Correct answer: D
Explanation
The correct answer is D, Convert-VHD, because this cmdlet allows for the conversion of virtual hard disks and can be used to shrink their size. The other options, such as Dismount-VHD and Mount-VHD, are used for managing the state of the VHD but do not directly affect its size. Resize-VHD is used to increase or decrease the size of the VHD but cannot be run without first converting it.