Forget to pass in the dvd drive to eject the iso from

This commit is contained in:
Taliesin Sisson 2015-12-05 03:13:38 -08:00
parent 872fc559f5
commit 181132f32b
1 changed files with 1 additions and 1 deletions

View File

@ -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
`