I'm getting this error when running invoke-vmscript to get the linux vm hostname.
I have the vix installed on the host where I'm running the powercli
Any clues why?
Thx in advance!
PowerCLI C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI> invoke-vmscript -ScriptText "hostname" -VM $vm -GuestUser root -GuestPassword changeme
Invoke-VMScript : 4/12/2013 10:57:18 AM Invoke-VMScript The requested
operation could not be performed because VIX is not installed on this machine.
Please install VIX if you want to use this functionality.
At line:1 char:16
+ invoke-vmscript <<<< -ScriptText "hostname" -VM $vm -GuestUser root -GuestPassword changeme
+ CategoryInfo : NotInstalled: (:) [Invoke-VMScript], ViError
+ FullyQualifiedErrorId : Client20_VixHelper_Ctr_VixMissing,VMware.VimAuto
mation.ViCore.Cmdlets.Commands.InvokeVmScript
Here is the PowerCLI version info
----------------
VMware vSphere PowerCLI 5.1 Release 1 build 793510
---------------
Snapin Versions
---------------
VMWare AutoDeploy PowerCLI Component 5.1 build 768137
VMWare ImageBuilder PowerCLI Component 5.1 build 768137
VMware License PowerCLI Component 5.1 build 669840
VMware vSphere PowerCLI Component 5.1 build 793489