I have two PCs, both win 7x64. PC1 has powercli 5.5 build 3142196 (5.5u2?) and the other has that and now updated to 6.0.0.7857 (latest AFAIK) via VMware-PowerCLI-6.0.0-3205540.exe from downloads section.
On PC1 I can run the script
invoke-vmscript -ScriptText '(gwmi win32_computersystem).manufacturer -like "*vmware*"' -ToolsWaitSecs 45 -VM VMName -guestuser guestacct -guestpassword blablabla
and it works fine and gives me a result.
If I run the same command on PC1 I keep getting the error:
Invoke-VMScript : 11/16/2015 6:32:01 PM Invoke-VMScript Unable to connect to the remote server
at line:1 char:1
+ Invoke-VMScript -ScriptText '(gwmi win32_computersystem).manufacturer -like "*vm ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-VMScript], ViError
+ FullyQualifiedErrorId : Client20_VmGuestServiceImpl_DownloadFileFromGuest_DownloadError,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
Has anyone run into this before? I can't think of any differences in the PCs that would cause this and I'm wondering if there are any log files etc for troubleshooting I'm not aware of. The message is kinda lacking in detail. Presumably the client should log something.
Thanks!