Hi All
I am trying to reconfigure VM using "ReconfigVM_Task". if CD/DVD is connected to the VM i want it to disconnect and change it to passthrough client device.
i know this can be done in following way and its working fine for me..
Get-CDDrive $_.Name | Set-CDDrive -NoMedia -Connected:$false -StartConnected:$false -Confirm:$false
but i like/want to do it in quicker manner.
please guide me towards resolution. the error i am getting is "Incompatible device backing specified for device '0'." at vCenter there is no error in powercli console
i am suspecting following line in attached code is causing the real problem..
$spec.deviceChange[0].device.backing.DeviceName = $dev.backing.DeviceName
Thanks in Advance
-- Kind Regards
Sanshis