PowerCLI

 View Only
  • 1.  invoke-vmscript system error occurred: vix error codes = (1, 0)

    Posted Jan 20, 2016 11:01 PM

    Hi,

    I'm testing out some scripts in ESXi 6 as we plan to upgrade our environment from 5.5 in the next few months.

    I very quickly discovered that invoke-vmscript no longer works at least in my test environment.

    Just testing a basic command to confirm it works I get the following error:

    PowerCLI C:\> Invoke-VMScript -VM $vm -GuestCredential $GuestCred -ScriptText $TestGuestCredentials

    Invoke-VMScript : 21/01/2016 9:45:59 AM    Invoke-VMScript        A general system error occurred: vix error codes = (1, 0).

    At line:1 char:1

    + Invoke-VMScript -VM $vm -GuestCredential $GuestCred -ScriptText $TestGuestCreden ...

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ~~~

        + CategoryInfo          : NotSpecified: (:) [Invoke-VMScript], SystemError

        + FullyQualifiedErrorId : Client20_VmGuestServiceImpl_RunScriptInGuest_ViError,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript

    PowerCLI C:\> get-powercliversion

    PowerCLI Version

    ----------------

       VMware vSphere PowerCLI 6.0 Release 1 build 2548067

    ---------------

    Component Versions

    ---------------

       VMWare AutoDeploy PowerCLI Component 6.0 build 2358282

       VMWare ImageBuilder PowerCLI Component 6.0 build 2358282

       VMware License PowerCLI Component 6.0 build 2315846

       VMware vSphere PowerCLI Component 6.0 build 2548068

       VMware Cloud Infrastructure Suite PowerCLI Component 6.0 build 2548068

       VMware HA PowerCLI Component 6.0 build 2510422

       VMware PowerCLI Component for Storage Management 6.0 build 2522368

       VMware VDS PowerCLI Component 6.0 build 2548068

    Vcenter Appliance is version 6.0.0,3018523

    Can anyone advise what I can look at to troubleshoot this issue?

    Thanks



  • 2.  RE: invoke-vmscript system error occurred: vix error codes = (1, 0)

    Posted Jan 21, 2016 07:06 AM

    There should be more clues on what went wrong in the vmware.log of the VM against which you ran the Invoke-VMScript.

    Can you check ?



  • 3.  RE: invoke-vmscript system error occurred: vix error codes = (1, 0)

    Posted Jan 21, 2016 11:04 PM

    Thanks for the response LucD.

    It turns out this is the error message I now get for incorrect guest credentials.  Previously in 5.1 and 5.5 I definitely used to get a message more along the lines or incorrect guest credentials whereas now I get the cryptic "

    system error occurred: vix error codes = (1, 0)"

    If I use invoke-vmscript with correct guest credentials it works fine.

    Cheers