Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Just wondering if anybody knows is there any script for vmware to attach or detach USB device?

share|improve this question
I have often wondered the same thing about ESX/Vsphere. Good Question. – kyoung Feb 10 '10 at 16:42
Which VMware product are you referring to? Workstation, Fusion, Server, ESX, vSphere... – Eric3 Feb 10 '10 at 16:59
Any of it. It will be great to find such script for any product. – antonyZ Feb 10 '10 at 18:00
But it is workstation. – antonyZ Feb 10 '10 at 18:22

I can't see anything in the VIX API reference about USB: VIX API Reference

So my guess is that with the VIX api alone the answer is no you cannot do this.

This product powerwf says:

PowerWF Studio for VMware is a suite of tools for automating and administering virtual machine operations and the guests within virtual machines. Leveraging the VMware's VIX API plus several other PowerWF activities packs, PowerWF Studio for VMware offers levels of automation typically only seen in enterprise class solutions. The product supports management of VMware Server, Workstation, Player, and Virtual Infrastructure (both ESX and vCenter).

There might be such a capability in their "activity packs". I've never used it so that's just a guess but it looks like they have a free download so might be worth a look.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.