CmdID / PowerShell / Cmdlets / Get
Get-VHD
Gets the virtual hard disk object associated with a virtual hard disk. Windows Server PowerShell reference
From the Windows Server PowerShell reference 6 parameters Its page in the reference
Parameters
-CimSessionRuns the cmdlet in a remote session or on a remote computer.-ComputerNameSpecifies one or more Hyper-V hosts on which a virtual hard disk is to be retrieved.-CredentialSpecifies one or more user accounts that have permission to perform this action.-DiskNumber, -NumberSpecifies the disk number associated with the virtual hard disk to be retrieved.-Path, -FullNameSpecifies the path to the virtual hard disk file of the virtual hard disk to be retrieved.-VMId, -IdSpecifies the virtual machine identifier of the virtual machine whose virtual hard disks are to be retrieved.