title: How to Add VM to Inventory?
body: <p>I'm writing a code for VMware ESX to add a .vmx file to the Inventory. This action should be the same as going in the GUI to the Datastore and right-clicking on a .vmx file --> Add to Inventory.</p>
  
  <p>I believe I am supposed to use the method registerVM_Task() and the only parameter I'm missing is the 'host'.</p>
  
  <p>Anyone got any ideas?</p>