VMware Cloud Community
jvm2016
Hot Shot
Hot Shot
Jump to solution

exception has been thrown by the target of an invocation _powercli

exception has been thrown by the target of an invocation _powercli

    Hi Luc,above is happening for  retriveing vm info of one of the clusters. from some of prevoius thread resolution is to uninstall powercli and install latest .do yu see any other workarounf right now ??

powercli version 6.5 release 1 build 4624819

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

There are a few steps you could take.

  • stop/start your PowerShell/PowerCLI session
  • logoff/logon on the station where you run the script
  • reboot the station where you run the script
  • does it happen with all VMs in that cluster? If not, and if possible, restart that VM.
  • vMotion the VM to another node
  • svMotion the VM to other storage
  • uninstall/install PowerCLI
  • restart the VCSA

Since it concerns PowerCLI 6.5R1, it is installed with an MSI/EXE.

There can have been impact from patches (especially the ones in the .NET realm).

Again, a PowerCLI installation with Install-Module is to preferred.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership
Jump to solution

There are a few steps you could take.

  • stop/start your PowerShell/PowerCLI session
  • logoff/logon on the station where you run the script
  • reboot the station where you run the script
  • does it happen with all VMs in that cluster? If not, and if possible, restart that VM.
  • vMotion the VM to another node
  • svMotion the VM to other storage
  • uninstall/install PowerCLI
  • restart the VCSA

Since it concerns PowerCLI 6.5R1, it is installed with an MSI/EXE.

There can have been impact from patches (especially the ones in the .NET realm).

Again, a PowerCLI installation with Install-Module is to preferred.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos