Does anyone know why location #1 fails, but #0 works? This is a Gen1 vm on a WS2012R2 host. $dvd is $null for me.
param([string] $vm, [string] $iso) $dvd = Set-VMDvdDrive -ComputerName . -VMName $vm -Passthru -ControllerNumber 1 -ControllerLocation 1 -Path $iso "dvd $dvd"
If there is a bug then I can probably work around it by using a SCSI controller instead of the second channel of either IDE controller.