Forget to pass in the dvd drive to eject the iso from
This commit is contained in:
parent
872fc559f5
commit
181132f32b
|
@ -91,7 +91,7 @@ $lastControllerNumber
|
|||
script = `
|
||||
param([string]$vmName, [string]$isoPath, [int]$controllerNumber)
|
||||
$dvdController = Add-VMDvdDrive -VMName $vmName -ControllerNumber $controllerNumber -path $isoPath -Passthru
|
||||
Set-VMDvdDrive -path $null
|
||||
$dvdController | Set-VMDvdDrive -path $null
|
||||
$dvdController.ControllerLocation
|
||||
`
|
||||
|
||||
|
|
Loading…
Reference in New Issue