<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Disconnect USB devices programmatically at runtime from guest to host and vice versa in Workstation in VMware Workstation Pro Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/Disconnect-USB-devices-programmatically-at-runtime-from-guest-to/m-p/2910822#M175904</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a VMWare Workstation VM using Vmware-kvm and I would like to programatically connect and disconnect USB devices connected to the host to my guest operating system, and vice versa. Basically the same way I would do it in the VMWare Workstation UI by selecting "Disconnect from Host", but I do not want to show the Workstation UI, but rather would like to hide it. Instead, I would like to run a program or script from inside the Guest VM (or from the host) that allows me to connect or disconnect any USB device connected to the host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any tool or API to achieve this? I know that I can edit the VMX file to influence the connection behaviour at startup, but I would like to perfrom this at runtime using a script, tool, program or whatever it takes to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome, thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 11:22:25 GMT</pubDate>
    <dc:creator>ErikDe</dc:creator>
    <dc:date>2022-05-24T11:22:25Z</dc:date>
    <item>
      <title>Disconnect USB devices programmatically at runtime from guest to host and vice versa in Workstation</title>
      <link>https://communities.vmware.com/t5/VMware-Workstation-Pro/Disconnect-USB-devices-programmatically-at-runtime-from-guest-to/m-p/2910822#M175904</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using a VMWare Workstation VM using Vmware-kvm and I would like to programatically connect and disconnect USB devices connected to the host to my guest operating system, and vice versa. Basically the same way I would do it in the VMWare Workstation UI by selecting "Disconnect from Host", but I do not want to show the Workstation UI, but rather would like to hide it. Instead, I would like to run a program or script from inside the Guest VM (or from the host) that allows me to connect or disconnect any USB device connected to the host.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any tool or API to achieve this? I know that I can edit the VMX file to influence the connection behaviour at startup, but I would like to perfrom this at runtime using a script, tool, program or whatever it takes to make this work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions are welcome, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 11:22:25 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-Workstation-Pro/Disconnect-USB-devices-programmatically-at-runtime-from-guest-to/m-p/2910822#M175904</guid>
      <dc:creator>ErikDe</dc:creator>
      <dc:date>2022-05-24T11:22:25Z</dc:date>
    </item>
  </channel>
</rss>

