Hello,
In our automation we came to a point where it looks useful to call scripts with in guest OS. I intend to call perl but since it's not supported I tried Bat and Powershell types. Both fail with the same message - could not locate interpreter. I should have enough privileges, including all guest ones. and of course I tried all these commands in guest without any problem. Any ideas what might be missing?
Host is running esxi 6.0, guest W2K12. Tools are up-to-date
Thank you in advance,
++Andrei
PS H:\> Invoke-VMScript -VM $vm -scripttext "echo Hello" -ScriptType bat -GuestUser u1 -GuestPassword pw
Invoke-VMScript : 03-Dec-2015 5:28:13 PM Invoke-VMScript Error occured while executing script on guest OS in
VM 'B2-W2K12R2-tv002-002'. Could not locate "Bat" script interpreter in any of the expected locations. Probably you do
not have enough permissions to execute command within guest.
At line:1 char:1