Configuring Advanced Windows Server 2012 Services — Question 61
You perform a full installation of Windows Server 2012 R2 on a virtual machine named Server1.
You plan to use Server1 as a reference image.
You need to minimize the amount of storage space used by the Windows Server 2012 R2 installation.
Which cmdlet should you use?
Answer options
- A. Remove-Module
- B. Optimize-VHD
- C. Optimize-Volume
- D. Uninstall-WindowsFeature
Correct answer: B
Explanation
The correct answer is B, Optimize-VHD, which is specifically designed to reduce the size of virtual hard disks by removing unused space. Options A, C, and D do not address the need to minimize storage for the virtual machine; Remove-Module is for unloading modules, Optimize-Volume focuses on physical volumes, and Uninstall-WindowsFeature is used for removing server features.