[SOLVED] Windows server 2022 failed to install KB5028171 with error 0x800f0905

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 SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
62151e1bebac4-SFCFix-Txt-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 try to install KB5029250 again. If it fails attach a new copy of the CBS logs and the Component Based Servicing hive.
 

Attachments

Please attach the latest CBS log, and also check the following folder to see which subfolders are present:
C:\Windows\System32\spp\tokens\skus

I just noticed some keys and values which are refering to the evalution version.

Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageIndex\microsoft-windows-serverstandardevaledition-Wrapper~31bf3856ad364e35~amd64~~0.0.0.0]
"microsoft-windows-serverstandardevaledition-Wrapper~31bf3856ad364e35~amd64~~10.0.20348.1787"=dword:00000000
 
It was installed as evaluation version and updated to a standard version.
Upgrade and conversion options for Windows Server


1692267460074.png


Code:
C:\Windows\System32\spp\tokens\skus>dir /s
 Volume in drive C has no label.
 Volume Serial Number is EC92-8BAB

 Directory of C:\Windows\System32\spp\tokens\skus

19-06-2023  15:57    <DIR>          .
19-06-2023  15:57    <DIR>          ..
19-06-2023  15:57    <DIR>          csvlk-pack
19-06-2023  15:57    <DIR>          ServerStandard
               0 File(s)              0 bytes

 Directory of C:\Windows\System32\spp\tokens\skus\csvlk-pack

19-06-2023  15:57    <DIR>          .
19-06-2023  15:57    <DIR>          ..
16-06-2023  14:13             5.966 csvlk-pack-ppdlic.xrm-ms
16-06-2023  14:16            11.803 csvlk-pack-Volume-CSVLK-1-pl-rtm.xrm-ms
16-06-2023  14:16            12.452 csvlk-pack-Volume-CSVLK-1-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.995 csvlk-pack-Volume-CSVLK-1-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.574 csvlk-pack-Volume-CSVLK-1-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.283 csvlk-pack-Volume-CSVLK-10-pl-rtm.xrm-ms
16-06-2023  14:16            11.931 csvlk-pack-Volume-CSVLK-10-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.474 csvlk-pack-Volume-CSVLK-10-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.053 csvlk-pack-Volume-CSVLK-10-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.843 csvlk-pack-Volume-CSVLK-2-pl-rtm.xrm-ms
16-06-2023  14:16            12.492 csvlk-pack-Volume-CSVLK-2-ul-oob-rtm.xrm-ms
16-06-2023  14:16            21.035 csvlk-pack-Volume-CSVLK-2-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.614 csvlk-pack-Volume-CSVLK-2-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.963 csvlk-pack-Volume-CSVLK-3-pl-rtm.xrm-ms
16-06-2023  14:16            12.612 csvlk-pack-Volume-CSVLK-3-ul-oob-rtm.xrm-ms
16-06-2023  14:16            21.155 csvlk-pack-Volume-CSVLK-3-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.734 csvlk-pack-Volume-CSVLK-3-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.283 csvlk-pack-Volume-CSVLK-4-pl-rtm.xrm-ms
16-06-2023  14:16            11.931 csvlk-pack-Volume-CSVLK-4-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.474 csvlk-pack-Volume-CSVLK-4-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.053 csvlk-pack-Volume-CSVLK-4-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.443 csvlk-pack-Volume-CSVLK-5-pl-rtm.xrm-ms
16-06-2023  14:16            12.091 csvlk-pack-Volume-CSVLK-5-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.634 csvlk-pack-Volume-CSVLK-5-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.213 csvlk-pack-Volume-CSVLK-5-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.323 csvlk-pack-Volume-CSVLK-6-pl-rtm.xrm-ms
16-06-2023  14:16            11.971 csvlk-pack-Volume-CSVLK-6-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.514 csvlk-pack-Volume-CSVLK-6-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.093 csvlk-pack-Volume-CSVLK-6-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.483 csvlk-pack-Volume-CSVLK-7-pl-rtm.xrm-ms
16-06-2023  14:16            12.131 csvlk-pack-Volume-CSVLK-7-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.674 csvlk-pack-Volume-CSVLK-7-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.253 csvlk-pack-Volume-CSVLK-7-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.363 csvlk-pack-Volume-CSVLK-8-pl-rtm.xrm-ms
16-06-2023  14:16            12.011 csvlk-pack-Volume-CSVLK-8-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.554 csvlk-pack-Volume-CSVLK-8-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.133 csvlk-pack-Volume-CSVLK-8-ul-store-rtm.xrm-ms
16-06-2023  14:16            11.523 csvlk-pack-Volume-CSVLK-9-pl-rtm.xrm-ms
16-06-2023  14:16            12.171 csvlk-pack-Volume-CSVLK-9-ul-oob-rtm.xrm-ms
16-06-2023  14:16            20.714 csvlk-pack-Volume-CSVLK-9-ul-phn-rtm.xrm-ms
16-06-2023  14:16            10.293 csvlk-pack-Volume-CSVLK-9-ul-store-rtm.xrm-ms
16-06-2023  14:16            47.311 DefaultPpd-csvlk-pack-ppdlic.xrm-ms
              42 File(s)        600.616 bytes

 Directory of C:\Windows\System32\spp\tokens\skus\ServerStandard

19-06-2023  15:57    <DIR>          .
19-06-2023  15:57    <DIR>          ..
16-06-2023  14:17            47.315 DefaultPpd-ServerStandard-ppdlic.xrm-ms
16-06-2023  14:17            10.947 ServerStandard-OEM-DM-1-pl-rtm.xrm-ms
16-06-2023  14:17            11.579 ServerStandard-OEM-DM-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.126 ServerStandard-OEM-DM-1-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.705 ServerStandard-OEM-DM-1-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.060 ServerStandard-OEM-DM-2-pl-rtm.xrm-ms
16-06-2023  14:17            11.692 ServerStandard-OEM-DM-2-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.239 ServerStandard-OEM-DM-2-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.818 ServerStandard-OEM-DM-2-ul-store-rtm.xrm-ms
16-06-2023  14:17            10.947 ServerStandard-OEM-NONSLP-1-pl-rtm.xrm-ms
16-06-2023  14:17            11.595 ServerStandard-OEM-NONSLP-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.138 ServerStandard-OEM-NONSLP-1-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.717 ServerStandard-OEM-NONSLP-1-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.060 ServerStandard-OEM-NONSLP-2-pl-rtm.xrm-ms
16-06-2023  14:17            11.708 ServerStandard-OEM-NONSLP-2-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.251 ServerStandard-OEM-NONSLP-2-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.830 ServerStandard-OEM-NONSLP-2-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.525 ServerStandard-OEM-SLP-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            10.413 ServerStandard-OEM-SLP-1-ul-rtm.xrm-ms
16-06-2023  14:17            11.638 ServerStandard-OEM-SLP-2-ul-oob-rtm.xrm-ms
16-06-2023  14:17            10.526 ServerStandard-OEM-SLP-2-ul-rtm.xrm-ms
16-06-2023  14:13            18.235 ServerStandard-ppdlic.xrm-ms
16-06-2023  14:17            10.848 ServerStandard-Retail-1-pl-rtm.xrm-ms
16-06-2023  14:17            11.484 ServerStandard-Retail-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.027 ServerStandard-Retail-1-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.606 ServerStandard-Retail-1-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.699 ServerStandard-Volume-CSVLK-1-pl-rtm.xrm-ms
16-06-2023  14:17            12.348 ServerStandard-Volume-CSVLK-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.891 ServerStandard-Volume-CSVLK-1-ul-phn-rtm.xrm-ms
16-06-2023  14:17            10.470 ServerStandard-Volume-CSVLK-1-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.739 ServerStandard-Volume-CSVLK-2-pl-rtm.xrm-ms
16-06-2023  14:17            12.388 ServerStandard-Volume-CSVLK-2-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.931 ServerStandard-Volume-CSVLK-2-ul-phn-rtm.xrm-ms
16-06-2023  14:17            10.510 ServerStandard-Volume-CSVLK-2-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.859 ServerStandard-Volume-CSVLK-3-pl-rtm.xrm-ms
16-06-2023  14:17            12.508 ServerStandard-Volume-CSVLK-3-ul-oob-rtm.xrm-ms
16-06-2023  14:17            21.051 ServerStandard-Volume-CSVLK-3-ul-phn-rtm.xrm-ms
16-06-2023  14:17            10.630 ServerStandard-Volume-CSVLK-3-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.514 ServerStandard-Volume-GVLK-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17             9.917 ServerStandard-Volume-GVLK-1-ul-rtm.xrm-ms
16-06-2023  14:17            10.848 ServerStandard-Volume-MAK-1-pl-rtm.xrm-ms
16-06-2023  14:17            11.488 ServerStandard-Volume-MAK-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            20.031 ServerStandard-Volume-MAK-1-ul-phn-rtm.xrm-ms
16-06-2023  14:17             9.610 ServerStandard-Volume-MAK-1-ul-store-rtm.xrm-ms
16-06-2023  14:17            11.444 ServerStandard-VT-IA-1-ul-oob-rtm.xrm-ms
16-06-2023  14:17            11.043 ServerStandard-VT-IA-1-ul-rtm.xrm-ms
              46 File(s)        634.948 bytes

     Total Files Listed:
              88 File(s)      1.235.564 bytes
               8 Dir(s)  19.812.077.568 bytes free
 

Attachments

It was installed as evaluation version and updated to a standard version.
Okay, let's remove the evaluation keys and values first, I wonder why they still exists.

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 SFCFixScript.txt and save it to your desktop.
  • Drag the SFCFixScript.txt file over the SFCFix.exe executable and release it.
62151e1bebac4-SFCFix-Txt-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 try to install KB5029250 again. If it fails attach a new copy of the CBS logs.
 

Attachments

You're weclome. Could you please try to remove the following subkey manually:

Open regedit and navigate to the following key and remove the highlighted subkey in red.
Rich (BB code):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\PackageIndex\microsoft-windows-serverstandardevaledition-Wrapper~31bf3856ad364e35~amd64~~0.0.0.0
 
Rich (BB code):
Security Update               KB5027225                                    6/16/2023                                       
Security Update               KB5028171               NT AUTHORITY\SYSTEM  7/23/2023                                       
Security Update               KB5029250               NT AUTHORITY\SYSTEM  8/16/2023
Is this server updated to the Standard version after KB5027225 was installed?
 
Code:
2023-06-19 15:57:26, Info                  DISM   DISM.EXE: Executing command line: DISM  /online /Set-Edition:ServerStandard /ProductKey:[manualy removed] /AcceptEula

The update to standard is done on 19-06-2023 according the DISM log.
 
Then it seems that this problem already existed before updating/activating this server with a license. In that case I would suggest to perform a repair install with the official ISO file.
 
Finally the problem is solved!


The solution:

- Delete everything under c:\Windows\SoftwareDistribution\Download

- Delete the following registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\Package_for_RollupFix~31bf3856ad364e35~amd64~~20348.1850.1.11
(If you don't have that exact key, look for one with a similarly named starting Package_for_RollupFix but don't confuse it with the Package_for_DotNetRollup ones!)

Source: Microsoft community
 
Hi,

Glad to hear you've managed to resolve this issue. However, that key does not exists in the Components Based Servicing Hive which is attached in post #30.

And to note: removing registry keys may cause other issues, so please don't remove anything from the registry if you don't know what you're doing!
 

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

Back
Top