Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Invoke-VMScript fails with "Could not locate "Bat" script interpreter in any of the expected locations"

$
0
0

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


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>