1 Reply Latest reply on Oct 7, 2019 9:08 AM by LucD

    exception has been thrown by the target of an invocation _powercli

    jvm2016 Expert

      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

        • 1. Re: exception has been thrown by the target of an invocation _powercli
          LucD Guru
          vExpertCommunity WarriorsUser Moderators

          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.