Windows Server 2012 R2 windows updates failing with error code 800f0831.
If any previous update is missing on the server then you will get the above error. To find the missing patch you have to check the CBS logs on the affected server and you will find the similar entries like below.
2020-04-29 04:21:03, Error CBS Failed to resolve package 'Package_8_for_KB4534309~31bf3856ad364e35~amd64~~22.214.171.124' [HRESULT = 0x800f0831 - CBS_E_STORE_CORRUPTION] 2020-04-29 04:21:03, Info CBS Mark store corruption flag because of package: Package_8_for_KB4534309~31bf3856ad364e35~amd64~~126.96.36.199. [HRESULT = 0x800f0831 - CBS_E_STORE_CORRUPTION]
Access the CBS log files on the affected computer from:
Search the CBS log files for Failed to resolve package or Mark store corruption flag and the missing KB is mentioned. Manually download and install that KB from catalog.update.microsoft.com. In my case it was KB4534309.
Restart the affected computer then try running Windows Updates again normally. Repeat the solution if you encounter the same error again, a new problem KB should be reported in the logs.
Lots of articles online suggest running the following then restarting. While these didn’t resolve my trouble you may have better success.
sfc /scannow dism /online /cleanup-image /scanhealth dism /online /cleanup-image /restorehealth
If you’re unable to get it resolved with the above steps feel free to email@example.com.
7 responses to “Fix Windows Update Error 800f0831”
Thanks for this!!!!
I tried all the usual repair steps, windows update repair tool, SSU update, etc etc. Nothing worked. Your advice was spot on. I found the problem service pack (KB4541509 in my case) in the CBS log file and everything is now working correctly.
Thanks for saving my from pulling my remaining hair out. Cheers!
Very welcome, Jim!
Normally I do not learn article on blogs, however I would like to say that thiswrite-up very forced me to take a look at and do so!Your writing taste has been amazed me. Thankyou, very great post.
My programmer is trying to convince me to move to .net from PHP.I have always disliked the idea because of the expenses.But he’s tryiong none the less. I’ve been using Movable-type on numerrous websites for about a year and aam nervous about switching toanother platform. I have heard fantastic things about blogengine.net.Is there a way I can import all my wordpress content into it?Any heelp would be greatly appreciated!
Yes! Drop me an email Edie, I’d be glad to discuss it with you.
Thanks a lot! Microsoft provides 10 pages of information for same thing. You provided what we need – few steps and how to look it. Thanks again!
Thank you! Thank you! Thank you! This worked for me after having this problem happen to a second server. The first time this happen was over the summer and I had to rebuild a new VM. That was a pain not because I had to rebuild windows server 2012 but because of the application that needed to run on it. Caused us a lot o down time. Happen again to a different server last night when trying to update it. Thought I may have had to rebit another server but ran into this site. Saved me a lot of pain and suffering. Thanks you again!