Just wondering if anybody knows is there any script for vmware to attach or detach USB device?
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:
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.