Getting exit code 0x80131029, when running powershell through vmware API

1

I am getting exit code as 0x80131029 when running powershell through VMware API.

enter image description here

Is there anyway I can find out the reason for this exit code through windows log or any other method?

Following cmdlets are being used:

Get-WMIObject

Get-ItemProperty

Get-CimInstance

powershell
remote-access
vsphere
vmware-tools
asked on Stack Overflow Mar 16, 2020 by Dharmender Lodhi • edited Mar 24, 2020 by Dharmender Lodhi

1 Answer

1

With below function you can get (most of) the descriptions for these HRESULT values:

function Resolve-HResult {
    param(
        [Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)]
        [int32[]]$HResult
    )

    Process {
        foreach ($hr in $HResult) {
            $comEx = [System.Runtime.InteropServices.Marshal]::GetExceptionForHR($hr)
            if ($comEx) {
                $comEx.Message
            }
            else {
                Write-Error "$hr doesn't correspond to a known HResult"
            }
        }
    }
}

In your case:

Resolve-HResult 0x80131029

returns

Process exited due to Timeout escalation.

Hope that helps

answered on Stack Overflow Mar 16, 2020 by Theo

User contributions licensed under CC BY-SA 3.0