title: Is it possible to remotely run scripts in a guest OS using VCLI?
body: <p>Using VMware OVF Tool 4.0, I'm deploying/powering on some VMs and would like to execute some scripts inside them. However, I was unable to assign injection properties to a VM, I.e: DNS, Gateway, etc. See OVF Tool documentation page 22 for more information: <a href="https://www.vmware.com/support/developer/ovf/ovf400/ovftool-400-userguide.pdf" rel="nofollow">https://www.vmware.com/support/developer/ovf/ovf400/ovftool-400-userguide.pdf</a></p>
  
  <p>This below link was helpful but the associated properties were not assigned, when I tred this:
  <a href="http://www.virtuallyghetto.com/2014/06/an-alternate-way-to-inject-ovf-properties-when-deploying-virtual-appliances-directly-onto-esxi.html" rel="nofollow">http://www.virtuallyghetto.com/2014/06/an-alternate-way-to-inject-ovf-properties-when-deploying-virtual-appliances-directly-onto-esxi.html</a></p>
  
  <p>As an alternative, I would like to remotely run a setup script that resides in the VM. <br />
  I'm seeing from articles online that Power CLI cmdlet Invoke-VMScript is a common choice. <br />Link shown below:
  <a href="https://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/Invoke-VMScript.html" rel="nofollow">https://www.vmware.com/support/developer/PowerCLI/PowerCLI51/html/Invoke-VMScript.html</a></p>
  
  <p>Is there an alternative method to this cmdlet? Is there a similar command that VCLI has to offer? Any assistance would be great. Thanks in advance.</p>
  
  <p>Regards,<br/>Gabriel</p>