Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error code 0x80070643 not in errorcodes.txt #14

Open
mike406 opened this issue Jul 17, 2020 · 1 comment
Open

Error code 0x80070643 not in errorcodes.txt #14

mike406 opened this issue Jul 17, 2020 · 1 comment

Comments

@mike406
Copy link

mike406 commented Jul 17, 2020

During a patching run I ran into error code 0x80070643. Just wanted to bring this code to your attention. Thanks!

Edit: Found another one: 0x80071a30
And 0x80072EE2 :)

@mike406
Copy link
Author

mike406 commented Jul 24, 2020

I'm thinking it also probably wouldn't be a bad idea if your $Message variable is blank due to not finding the error code in your list, you should then just print out the raw hex code because currently it will report with a blank error like this:
Update KB4566425 failed to install, reporting:

I have to dig into our WSUS server manually to find the error code when this happens.

You could do something like this

    'Failed' {
        $HResult = [Convert]::ToString($update.HResult, 16)
        $Message = $all_error_codes["0x$HResult"]
        If ($Message -eq "") { $Message = $HResult }
        Write-Output "Update <%= @kb %> failed to install, reporting: $Message"
        Exit 2
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant