You need to reduce the amount of disk space used by the VHD

You have a Hyper-V host named Server1 that runs Windows Server 2016. Server1 has a dynamically
expanding virtual hard disk (VHD) file that is 900 GB. The VHD contains 400 GB of free space.
You need to reduce the amount of disk space used by the VHD.
What should you run?

You have a Hyper-V host named Server1 that runs Windows Server 2016. Server1 has a dynamically
expanding virtual hard disk (VHD) file that is 900 GB. The VHD contains 400 GB of free space.
You need to reduce the amount of disk space used by the VHD.
What should you run?

A.
the Mount-VHD cmdlet

B.
the Diskpart command

C.
the Set-VHD cmdlet

D.
the Set-VM cmdlet

E.
the Set-VMHost cmdlet

F.
the Set-VMProcessor cmdlet

G.
the Install-WindowsFeature cmdlet

H.
the Optimize-VHD cmdlet

Explanation:

The Optimize-VHD cmdlet optimizes the allocation of space in or more virtual hard disk files, except for fixed virtual hard disks. The Compact operation is used to optimize the files. This operation reclaims unused blocks as well as rearranges the blocks to be more efficiently packed, which reduces the size of a virtual hard disk file.
References:
https://technet.microsoft.com/en-us/itpro/powershell/windows/hyper-v/optimize-vhd



Leave a Reply 0

Your email address will not be published. Required fields are marked *