You can get information about existing passthrough devices and add new SCSI and PCI devices to virtual machines and hosts.

Connect to a vSphere server.

1

Get a list of the PCI passthrough devices of the VMHost host

$host = Get-VMHost ESXHost
Get-PassthroughDevice -VMHost $host -Type Pci
2

Get a list of the SCSI passthrough devices of the VM virtual machine

$vm = Get-VM VM
Get-PassthroughDevice -VM $vm -Type Scsi
3

Add a SCSI passthrough device to the VM virtual machine

$scsiDeviceList = Get-PassthroughDevice -VMHost ESXHost -Type Scsi
Add-PassthroughDevice -VM $vm -PassthroughDevice $scsiDeviceList[0]