Error: 2. HRESULT: -2147024894

BatchPatch Forums Home Forums BatchPatch Support Forum Error: 2. HRESULT: -2147024894

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9163
    abbypatch
    Participant

    I am trying to create a job queue to perform updates + reboot. This may require multiple reboots.

    Job queue looks like this:

    Download and install updates + reboot always

    Wait for host to go offline and come back online

    Download and install updates + reboot if required

    The first two steps are performed correctly, but step 3 fails with the error: Error: 2. HRESULT: -2147024894

    I’ve found the fix is to “right click” the row (host) -> Windows updates -> Check for available updates

    This clear the error and usually finds 1 update required.

    Is it possible to add “Check for available updates” as an action to the Job queue? This would help with reporting back to wsus. I find at the end of the patching cycle, I must check for updates and then perform wuauclt /reportnow. Without doing a “check for updates”, the /reportnow will not be accurate. This could be an issue in my environment, but its something I have noticed.

    Thanks.

    #11099
    doug
    Moderator

    abbypatch –

    First, regarding the error you are experiencing, let me refer you to these two other threads. Please review them carefully, and let me know if you have any luck with the suggestions. Essentially, this issue has been reported by only a very small number of users, and it’s always only happening on just one or two of their servers. We have not so far been able to reproduce the problem.

    error-2-hresult-2147024894-could-not-find-file

    error-2-very-often-server-2012-r2-on-domain-controllers

    The fact that you don’t receive the error with every run is peculiar, and I’m not quite sure what, if anything, to make of it.

    Second, with regard to adding “Check for available updates” to the job queue, we will consider this. Thank you for the suggestion. In the meantime I have two suggestions for you that I think will probably both work instead of running ‘Check for available updates.’

    1: Instead of using ‘Check for available updates’ the job queue does have the ‘wuauclt.exe /resetauthorization /detectnow’ command included, and I believe this will do what you need if you run it before you run the /reportnow command. It should solve the problem. However, if it does not, please try option 2.

    2: Instead of using ‘Check for available updates’ you could try ‘Download available updates’ which essentially runs a ‘Check for available updates’ as part of the download process. Since there won’t be any updates to download, it will just check for available updates and find none to download. However, it will solve your problem of needing to run the ‘Check for available updates’ from within the job queue.

    I hope this helps.

    -Doug

    #11122
    abbypatch
    Participant

    Thanks for your reply. Using your second suggestion worked perfectly.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.