DVD Dismount Drive From VM

Dismounts a DVD drive from a virtual machine.

Input Parameters

Name Type Required Description
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.
Controller Number Number No Specifies the number of the controller from which the DVD drive is to be dismounted. 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 dismounted. If not specified, the number of the first available location on the controller is used.

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
Delete All Boolean No Optionally, you can delete all DVD drives for a specified VM.
Controller Number Number No 1
Controller Location Number No 1