Remove-VMAssignableDevice –locationpath $locationpath –VMName “VM-Name”
$localtionpath 是步骤 2 中的位置路径,VM-Name 是设备所连接虚拟机的名称。
Add-VMHostAssignableDevice –locationpath $locationpath –VMName “VM-Name”