DVD Add Drive to VM

Adds a DVD drive to a virtual machine.

Input Parameters

Name Type Required Description
VM Name String Yes Specifies the virtual machine to which the DVD drive is to be added.
Controller Number Number No Specifies the drive controller to which the DVD drive is to be added.
Controller Location Number Yes Specifies the number of the location on the controller at which the DVD drive is to be added. If not specified, the number of the first available location on the controller is used.
Disk ISO Path String No Specifies the full path to the virtual hard disk file or physical hard disk volume for the added DVD drive.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
VM Name String Yes Guest001
Controller Number Number No 1
Controller Location Number No 1
Disk ISO Path String No

D:\ISOs\disc1.iso

D:\