My primary WIN 2012 VM domain controller cannot update anymore, every update fails with this error:
Windows failed to install the following update with error 0x800f0900
I tried many things:
- reset SoftwareDistribution directory
- sfc /scannow ends without errors
- dism /online /cleanup-image /restorehealth stucks at 40% (I wait 18hours, then I stoped it)
- dism /online /cleanup-image /source.... /restorehealth get from a DVD source stucks at 40% like the previous
- clean and secure boot before previous commands
What can I try to do?
**** EDIT WindowsUpdate.log content:
2017-01-17 22:33:14:450 920 ff4 Handler Generating request for CBS update 641FE631-29F1-46B4-BBED-7D2B8D56741B in sandbox C:\Windows\SoftwareDistribution\Download\61d75607e4a6a41d2d6d304bed92af67
2017-01-17 22:33:14:529 920 ff4 Handler Selected payload type is ptExpress
2017-01-17 22:33:14:607 920 ff4 Handler UH: DpxRestoreJob returned 0x80070002
2017-01-17 22:33:14:607 920 ff4 Handler Detected download state is dsHavePackage
2017-01-17 22:33:30:935 920 364 Handler FATAL: CBS called Error with 0x800f0900,
2017-01-17 22:33:30:951 920 ff4 Handler FATAL: UH: 0x800f0900: Async stage operation failed in CUHCbsHandler::StageCbsPackage
2017-01-17 22:33:31:107 920 ff4 Handler FATAL: Request generation for CBS update complete with hr=0x800f0900 and pfResetSandbox=0
2017-01-17 22:33:31:107 920 ff4 Handler FATAL: Error source is 106.
2017-01-17 22:33:31:107 920 ff4 DnldMgr FATAL: DM:CAgentDownloadManager::GenerateAllDownloadRequests: GenerateDownloadRequest failed with 0x800f0900.
2017-01-17 22:33:32:404 920 ff4 DnldMgr WARNING: Download request generation failed with 0x800f0900.
2017-01-17 22:33:32:435 920 ff4 DnldMgr Error 0x800f0900 occurred while downloading update; notifying dependent calls.
2017-01-17 22:33:32:466 920 174 AU >>## RESUMED ## AU: Download update [UpdateId = {4485F552-0451-4646-B224-BEC7507523F3}]
2017-01-17 22:33:32:466 920 174 AU # WARNING: Download failed, error = 0x800F0900
2017-01-17 22:33:32:779 920 174 AU #########
2017-01-17 22:33:32:779 920 174 AU ## END ## AU: Download updates
2017-01-17 22:33:32:779 920 174 AU #############
CBS log:
2017-01-27 17:11:26, Info CBS Exec: Package: Package_20_for_KB2934016~31bf3856ad364e35~amd64~~6.2.1.1 is already in the correct state, current: Installed, targeted: Installed
2017-01-27 17:11:26, Info CBS Exec: Skipping Package: Package_20_for_KB2934016~31bf3856ad364e35~amd64~~6.2.1.1, Update: 2934016-60_neutral_LDR because it is already in the correct state.
2017-01-27 17:11:26, Info CBS Exec: Skipping Package: Package_20_for_KB2934016~31bf3856ad364e35~amd64~~6.2.1.1, Update: 2934016-61_neutral_LDR because it is already in the correct state.
2017-01-27 17:11:26, Info CBS Exec: Skipping Package: Package_20_for_KB2934016~31bf3856ad364e35~amd64~~6.2.1.1, Update: 2934016-62_neutral_GDR because it is already in the correct state.
2017-01-27 17:11:26, Info CBS Failed to peek next token (status=0xc0000161) [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to get next Token [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Wrong XML DECL [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Invalid xml format [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Manifest parsing error at line: 1, context:
[HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to parse the manifest from the buffer. [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Error CBS Failed to parse package manifest: \\?\C:\Windows\Servicing\Packages\Package_357_for_KB2836988~31bf3856ad364e35~amd64~~6.2.1.0.mum [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Mark store corruption flag because of parsing failure on package: Package_357_for_KB2836988~31bf3856ad364e35~amd64~~6.2.1.0. [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to initialize package: Package_357_for_KB2836988~31bf3856ad364e35~amd64~~6.2.1.0, from path: \\?\C:\Windows\Servicing\Packages\Package_357_for_KB2836988~31bf3856ad364e35~amd64~~6.2.1.0.mum, existing package: 1 [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Mark store corruption flag because of package: Package_357_for_KB2836988~31bf3856ad364e35~amd64~~6.2.1.0. [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to resolve package [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to get next package to re-evaluate [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Failed to process component watch list. [HRESULT = 0x800f0900 - CBS_E_XML_PARSER_FAILURE]
2017-01-27 17:11:26, Info CBS Perf: InstallUninstallChain complete.
2017-01-27 17:11:26, Info CSI 00000b91@2017/1/27:16:11:26.555 CSI Transaction @0x6db95b2ce0 destroyed
2017-01-27 17:11:26, Info CBS Exec: Store corruption found during execution, but auto repair is already attempted today, skip it.
The simplest solution would be to create a new DC, and retire the broken one.
Solution 1 Corrupt Update Files
Microsoft provides a walk-through named Fix Windows Update errors. Yes, it is for Windows 10 (or 8.1 or 7), but I found an extended DISM.exe command here.
While clicking through various steps the solution of executing the DISM.exe command is displayed. I am aware that you tried this step already, but try the advanced option:
DISM.exe /Online /Cleanup-Image /RestoreHealth /Source:C:\RepairSource\Windows /LimitAccess
The referenced source
C:\RepairSource\Windows
can be a network share temporarily attached to the DC or a thumb drive with a copy of a working Windows installation as outlined in the Microsoft article.You can download a fresh copy of Windows 10 using the Media Creation Tool (Microsoft). Then, convert the install.esd file to a WIM file (TheITBros.com).
On a side note:
If you have a policy (GPO) that is setting the
TRUSTEDINSTALLER
service to manual, disable this policy.Solution 2 Permission Issue
Some errors are related to permissions issues on the C: drive and can be solved with the following steps:
That should install all the pending updates.
Sources
Fix Windows Update errors
Installation Failures / CBS Store corruptions: Uncommon issues and troubleshooting
Windows Server 2008 Std. Update Error with code 8000FFFF
CBS called Error with 0x800f0900,(Google Search)
It appears to be Bitlocker and UEFI related issue.
Here is the documentation from Microsoft.
Symptoms
Consider the following two configurations:
Scenario one
Scenario two
In these configurations, security update 2871690 may not install, and you receive a 0x800f0922 error message.
Cause
This error occurs because the installer for security update 2871690 incorrectly expects BitLocker to be installed.
Workaround
To work around this issue, use one of the following methods, based on your scenario:
Workaround for scenario one
Install the BitLocker optional component on the server that uses UEFI and that has the Secure Boot option enabled.
Workaround for scenario two
Install the BitLocker optional component on the guest virtual machine in the Hyper-V configuration. Note You do not have to configure BitLocker on any drive. It is only necessary for the BitLocker component to be present on Window Server 2012 when you install security update 2871690.
Option 1:
Check your windowsupdate.log (C:\Windows) for errors.
Stop Windows Update and BITS services
Delete C:\Windows\Software Distribution folder
Reset your WMI Repository --> Open CMD and type winmgmt /resetrepository
Start BITS and Windows Updates services
Try again.
Option 2: Check for Service Corruptions: https://technet.microsoft.com/en-us/library/ee619779%28WS.10%29.aspx
Please post the results.