Hi everybody,
I have already read a lot of discussions about this topic in the forums but most of them are quite out-dated and had no solutions for my specific problem.
In the meantime, is there any way to programatically connect or disconnect USB devices via command line or any API to a virtual machine? My use case is as follows: I am starting my VM in headless mode (vmrun -T player start "myVM.vmx" nogui). When connecting a specific USB stick to the host computer, I do NOT want it to be connected to the virtual machine but to the host operating system. When any other USB stick is connected to the host computer, I want those to be connected directly to the virtual machine, i.e. the guest operating system.
Do you have any suggestions how to achieve this goal with VMware Player or Workstation? Is it possible to do this programatically?
Thanks in advance!