I'm trying to create a newly virtual machine in powershell without any interaction.
For now, I succeed to create a VM with one ide boot disk, a nic in a specific vlan but I can't add a PassThrough disk to the vM.
The following command worked but it's asking me to choose the disk I want to add but I want no interaction
Get-VM $vm | Add-VMPassThrough -ControllerID 0 -LUN 0 -scsi -PhysicalDisk (Select-VMPhysicalDisk)
Is anyone have already succeeded this without using wmi commands ?