|best| | Get-vhd
Then, a new line of text appeared on the screen, not from a command line output, but seemingly from the file itself responding to the query.
$vhd = get-vhd -Path "E:\Archives\Legacy\final_backup.vhd"
The Get-VHD cmdlet outputs an object or objects representing the VHD file(s), with properties such as: get-vhd
Get-VHD -Path "\\HV02\D$\VMs\Disk.vhd" -ComputerName HV02
This command retrieves information about the specified VHD file. Then, a new line of text appeared on
Scanning directories to find all virtual disks and reporting their types and sizes to ensure they fit within storage quotas.
Running commands against remote Hyper-V hosts using PowerShell Remoting. not from a command line output
Get-VHD returns a Microsoft.Vhd.PowerShell.VirtualHardDisk object with critical attributes: