DSCResources/DSC_VMHardDiskDrive/en-US/about_VMHardDiskDrive.help.txt
.NAME
VMHardDiskDrive .DESCRIPTION Manages VHD(X)s attached to a Hyper-V virtual machine. When parameter ControllerNumber or ControllerLocation is not provided, the same logic as Set-VMHardDiskDrive command is used. ## Requirements * The Hyper-V Role has to be installed on the machine. * The Hyper-V PowerShell module has to be installed on the machine. .PARAMETER VMName Key - String Specifies the name of the virtual machine whose hard disk drive is to be manipulated. .PARAMETER Path Key - String Specifies the full path of the VHD file to be manipulated. .PARAMETER ControllerType Write - String Allowed values: IDE, SCSI Specifies the type of controller (IDE/SCSI) to which the hard disk drive is to be set. If not specified, it defaults to SCSI. .PARAMETER ControllerNumber Write - UInt32 Allowed values: 0, 1, 2, 3 Specifies the number of the controller to which the hard disk drive is to be set. For IDE the possible values are 0 or 1, for SCSI the possible values are 0, 1, 2, or 3. If not specified, it defaults to 0. .PARAMETER ControllerLocation Write - UInt32 Specifies the number of the location on the controller at which the hard disk drive is to be set. Possible values for IDE are 0 or 1, and for SCSI the possible values are between 0 to 63. If not specified, it defaults to 0. .PARAMETER Ensure Write - String Allowed values: Present, Absent Specifies if the hard disk drive must be present (exist) or absent (not exist). If not specified, it defaults to Present. |