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

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

$
0
0

Hi,

Yes that may be true. The dependencies are mentioned in the Invoke-Command details page (Invoke-Command).

 

If the remote computer is not in a domain that the local computer trusts, the computer might not be able to authenticate the user's credentials. To add the remote computer to the list of "trusted hosts" in WS-Management, use the following command in the WSMAN provider, where <Remote-Computer-Name> is the name of the remote computer:

Set-Item -Path WSMan:\Localhost\Client\TrustedHosts -Value <Remote-Computer-Name>

 

Also note for remote execution WinRM must be enabled on the system.


Viewing all articles
Browse latest Browse all 168455

Trending Articles