[SOLVED] Server 2019 - Error 0x800f0986

VvdP

Member
Joined
Jul 26, 2023
Posts
12
Hi,

I'm getting the error 0x800f0986 when trying to install windows updates on a server 2019.

sfc /scannow > no issues found

Dism /Online /Cleanup-Image /ScanHealth
No component store corruption detected.

Dism /Online /Cleanup-Image /CheckHealth
No component store corruption detected.


I'm on a corporate enviroment, is it possible to manually fix this instead of the tool you provide for security reasons?
I'm not allowed to use the tool.

Thanks in advance.
 

Attachments

Hi and welcome to Sysnative,

Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
Thanks for the reaction.

See the wetransfer link for the components file of the corresponding server.
 
Hi,

Download
6530fbb0f4101-56f31e53c97da-SFCFix.PNG
SFCFix and save it to your desktop.

Warning: This fix was written specifically for this system. Do not run this fix on another system.
  • Save any work you have open, and close all programs.
  • Download the attachment SFCFix.zip and save it to your desktop.
  • Drag the SFCFix.zip file over the SFCFix.exe executable and release it.
650c22f99662d-6190d993a26f3-SFCFix-Zip-Eng.gif

  • SFCFix will launch, let it complete.
  • Once done, a file will appear on your desktop, called SFCFix.txt.
  • Post the logfile (SFCFix.txt) as attachment in your next reply.

Afterwards reboot the server and attempt to update. If it fails attach a new copy of the CBS logs.
 

Attachments

Bedankt voor je snelle reactie/Thank you for the fast reply.

is it possible to do this manually instead of the provided tool?
In my corporate environment i'm unfortunately not allowed to run third party tools.
 
Graag gedaan! And yes, that's possible. You can perform the following steps.


Step 1. Download WinSxS.zip to your desktop and extract this file.

Open an elevated command prompt and run the following commands.
Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe" /r
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe" /grant administrators:(F) /t

Now copy the files/folders inside %userprofile%\Desktop\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe

to the follwowing directory:

%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe

Then run the following commands to restore the permissions.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.5576_none_94b45076383b2ffe" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%systemroot%\WinSxS" /restore "%userprofile%\desktop\perms.acl" /t

Step 2. Download RegFix.zip and extract this file.
Run the following command in an elevated prompt to manually load the COMPONENTS hive into the registry.
Code:
reg load HKLM\COMPONENTS C:\Windows\System32\Config\COMPONENTS
When conpleted right-click the FixReg.reg file and select Merge and allow the registry import.
 

Attachments

Thank you for the detailed explanation, I will try this tomorrow and will let you know the results.
 
I have followed the above, now I get a different error.
See attached cbs1.log

The file was very large so i copied the last bit.
 

Attachments

Here's the next fix.

Step 1. Download WinSxS.zip and extract this file.
Open an elevaated prompt and run the following commands.
Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a" /r
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a" /grant administrators:(F) /t

Now copy the files/folders inside %userprofile%\Desktop\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a

to the follwowing directory:

%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a

Then run the following commands to restore the permissions.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.719_none_bc237139ebeeca0a" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%systemroot%\WinSxS" /restore "%userprofile%\desktop\perms.acl" /t

Step 2. Download RegFix.zip and extract this file.
Run the following command in an elevated prompt to manually load the COMPONENTS hive into the registry.
Code:
reg load HKLM\COMPONENTS C:\Windows\System32\Config\COMPONENTS
When conpleted right-click the FixReg.reg file and select Merge and allow the registry import.

Step 3. Run the following DISM command and post the result. If it fails attach a new copy of the CBS log.
Code:
DISM /online /cleanup-image /RestoreHealth
 

Attachments

The restorehealth was succesfully completed, tried reïnstalling. Gives another error, see attached file.
 

Attachments

Rich (BB code):
2024-04-19 10:51:26, Info                  CSI    000012f6 Changelist winner missing files - Microsoft-Windows-AppManagement-UEVWow, version 10.0.17763.1, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35}
[l:153]'microsoft.uev.appagent.dl_4ae23715ba33112c,microsoft.uev.office2010c_39925edf6b5d59c3,uevcustomactiontypes.tlb,microsoft.uev.office2013c_39925edf372276c6'
2024-04-19 10:51:26, Error                 CSI    000012f7@2024/4/19:08:51:26.457 (F) onecore\base\wcp\componentstore\csd_winners.cpp(1279): Error STATUS_SXS_TRANSACTION_CLOSURE_INCOMPLETE originated in function OriginateFilesMissingError expression: (null)
[gle=0x80004005]

Please upload a new copy of the COMPONENTS hive as well as a copy of the SideBySide hive.

Upload your COMPONENTS hive.
  • Navigate to C:\Windows\System32\Config and locate the COMPONENTS file.
  • Please copy this file to your desktop.
  • Note: If you receive an error that this file is in-use, simply reboot your computer and try again.
  • Right-click on this file on your desktop and select Send To > Compressed (zipped) folder. This will create a file named COMPONENTS.ZIP on your desktop.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.

Export SBS (SideBySide) hive
  • Click on the Start button and type regedit
  • When you see regedit on the list, right-click on it and select Run as administrator.
  • When regedit opens, using the left pane, navigate to the following registry key and select it by clicking on it once.
    Code:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide
  • Once selected, click File > Export....
  • Change the Save as type: to Registry Hive Files (*.*).

    652ff1dfded79-622dbdc454cdb-Export-SBS-hive.png

  • Name this file SideBySide (with no file extension) and save it to your Desktop.
  • Right-click on the saved file and choose Send > Compressed (zipped) Folder.
  • Attach the .ZIP file to your next post.
  • If the file is too large to upload here, upload the file to www.wetransfer.com and post the link in your next reply.
 
You're welcome. In the meantime please run the following command in an elevated prompt to check the following manifest file.
Code:
certutil -hashfile %systemroot%\WinSxS\Manifests\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae.manifest SHA256
 
Got the following reply:
CertUtil: -hashfile command completed successfully.
 
Please post the complete output, so I can verify the SHA256 hash.

Rich (BB code):
certutil -hashfile %systemroot%\WinSxS\Manifests\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae.manifest SHA256
SHA256 hash of C:\Windows\WinSxS\Manifests\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae.manifest:
638dda209690747e0c9b44599206100657fdcacf4b498f08c4d754bec425c19c
CertUtil: -hashfile command completed successfully.
 
certutil -hashfile %systemroot%\WinSxS\Manifests\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae.manifest SHA256
SHA256 hash of C:\Windows\WinSxS\Manifests\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae.manifest:
638dda209690747e0c9b44599206100657fdcacf4b498f08c4d754bec425c19c
CertUtil: -hashfile command completed successfully.
 
Great, here's the next fix.

Step 1. Download WinSxS.zip and extract this file.
Open an elevaated prompt and run the following commands.
Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae" /save "%userprofile%\desktop\perms.acl" /t
takeown /f "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae" /r
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae" /grant administrators:(F) /t

Now copy the files/folders inside %userprofile%\Desktop\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae

to the follwowing directory:

%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae

Then run the following commands to restore the permissions.

Code:
icacls "%systemroot%\WinSxS\amd64_microsoft-windows-appmanagement-uevwow_31bf3856ad364e35_10.0.17763.1_none_37fc55b8be8a44ae" /setowner "NT SERVICE\TrustedInstaller" /t
icacls "%systemroot%\WinSxS" /restore "%userprofile%\desktop\perms.acl" /t

Step 2. Download RegFix.zip and extract this file.
Run the following command in an elevated prompt to manually load the COMPONENTS hive into the registry.
Code:
reg load HKLM\COMPONENTS C:\Windows\System32\Config\COMPONENTS
When conpleted right-click the FixReg.reg file and select Merge and allow the registry import.
 

Attachments

Has Sysnative Forums helped you? Please consider donating to help us support the site!

Back
Top