Get All VHDX for All VMs with this PowerShell Script
Do you need a list of all virtual disks on a Hyper-V server? Simply run this PowerShell script and it will give you a list of all VHD and VHDX files that are connected to virtual machines in Hyper-V: $MyVMs = Get-VM Foreach ($MyVM in $MyVMs) { $AllHardDrives = $MyVM.HardDrives Foreach ($HardDriveItem in $AllHardDrives) { […]