CmdID / PowerShell / Cmdlets / Get
Get-VMHardDiskDrive
Gets the virtual hard disk drives attached to one or more virtual machines. Windows Server PowerShell reference
From the Windows Server PowerShell reference 10 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 from which the virtual hard disk drives are to be retrieved.-ControllerLocationSpecifies the number of the location on the controller at which the virtual hard disk drives are to be retrieved.-ControllerNumberSpecifies the number of the controller at which the virtual hard disk drives are to be retrieved.-ControllerTypeSpecifies the type of the controller from which the virtual hard disk drives are to be retrieved.-CredentialSpecifies one or more user accounts that have permission to perform this action.-VMSpecifies the virtual machine from which the virtual hard disk drives are to be retrieved.-VMDriveControllerSpecifies the drive controller from which the virtual hard disk drives are to be retrieved.-VMNameSpecifies the name of the virtual machine from which the virtual hard disks drives are to be retrieved.-VMSnapshot, -VMCheckpointSpecifies the snapshot from which the virtual hard disk drives are to be retrieved.