DVD Delete Drive From VM
Deletes a DVD drive from a virtual machine.
Input Parameters
VM Name |
String |
Yes |
Specifies one or more Hyper-V hosts from which the DVD drive is to be deleted. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly. |
Controller Number |
Number |
No |
Specifies the number of the controller from which the DVD drive is to be deleted. If not specified, the first IDE controller on which the specified ControllerLocation is available is used. |
Controller Location |
Number |
Yes |
Specifies the number of the location on the controller at which the DVD drive is to be deleted. If not specified, the number of the first available location on the controller is used. |
Output Parameters
Result |
Number |
Returns a success value of zero or any value other than zero to indicate failure. |
Example Input Parameters
VM Name |
String |
Yes |
Guest001 |
Delete All |
Boolean |
No |
Optionally delete all DVD drives for specified VM |
Controller Number |
Number |
No |
1 |
Controller Location |
Number |
No |
1 |