Forum Discussion
ahinterl
Oct 20, 2025Brass Contributor
Map vmdk to guest volume
I have a Hyper-V cluster and want PowerShell to give me a list of what vmdk file is assigned to which volume mount point in the virtual machine OS (Windows). Example: vmdk file ...
Vern_Anderson
Oct 29, 2025Copper Contributor
Hello,
Hyper-V uses VHD and VHDX files it does not natively use VMDKs that is VMWARE's file standard.
VHD = Generation 1 VM
VHDX = Generation 2 VM
The Get-VMHardDiskDrive that is already built in should get you what you need, you could even pipe in all the VM names into it, but by default it gets the VHD information for the VM you specify, but it does accept pipe line input.
Get-VM | Get-VMHardDiskDrive | Format-Table VMName,ControllerLocation,Path