How to Diagnose the Windows Servicing Stack

The Servicing Stack is the component or set of modules that install Windows updates. Additionally, it contains the component-based servicing stack (CBS), which is a key underlying component for several elements of Windows deployment, such as:

  • DISM
  • SFC
  • Changing Windows features or roles
  • Repairing components

Microsoft releases Servicing Stack Updates (SSU) which provide fixes to the servicing stack. Servicing stack updates improve the reliability of the update process to mitigate potential issues while installing the latest quality updates and feature updates. If you don’t install the latest servicing stack update, there’s a risk that your device can’t be updated with the latest Microsoft security fixes.

If the servicing stack is corrupt, servicing the computer is not possible; DISM/SFC won’t work, and you’ll be unable to add or remove Windows Features. Also, a repair installation using the Media Creation Tool or the ISO may fail if the servicing stack is corrupt.

EXAMPLE – Servicing Stack issue: Errors 0x800703e6 (998) in DISM and Windows Update

Windows Servicing Stack Diagnostics script

Here’s the Windows Servicing Stack Diagnostics script I wrote, which queries the servicing stack version installed on the computer and checks the hash checksum (SHA256) of the servicing stack modules.

How to Download Run the script?

Right-click on the link SSUDiag.vbs, and click “Save link as” or equivalent option in your browser. If your browser saves it as SSUDiag.vbs.txt, rename the file to SSUDiag.vbs. Double-click SSUDiag.vbs to run the script.

The script produces the following log file in the %temp% folder:



  • ssudiag.txt – Contains the list of servicing stack modules, their version, and hash.

Note: If an expert is assisting you in fixing the CBS errors, please upload the above logs to a cloud account (e.g., OneDrive, Dropbox, etc.) and share the link to him.

Script contents

Here is a sample SSUDiag.txt log file

SERVICING STACK DIAGNOSTICS
--------------------------------------------------------------------------------------------------------------------------------------
Stack Version: 10.0.22621.1626
Stack Path: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1626_none_e930f5a242f053dd
--------------------------------------------------------------------------------------------------------------------------------------
Modules in [C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1626_none_e930f5a242f053dd] (22 Files)
--------------------------------------------------------------------------------------------------------------------------------------
Filename            Modified        Version         Size (bytes)
--------------------------------------------------------------------------------------------------------------------------------------
amd64_installed                 07/05/2022 06:19:46                               9
CbsCore.dll                     28/03/2023 07:11:55 10.0.22621.1626       2,946,392
CbsMsg.dll                      28/03/2023 07:11:55                          70,992
dpx.dll                         28/03/2023 07:11:54 10.0.22621.1626         779,592
drupdate.dll                    28/03/2023 07:11:55 10.0.22621.1626         435,544
drvstore.dll                    28/03/2023 07:11:53                       1,459,984
GlobalInstallOrder.xml          07/05/2022 06:19:46                       1,247,506
msdelta.dll                     28/03/2023 07:11:57 5.0.1.1                 603,464
mspatcha.dll                    28/03/2023 07:11:51                          79,232
poqexec.exe                     28/03/2023 07:11:55 10.0.22621.1626         569,344
ReserveManager.dll              28/03/2023 07:11:55 10.0.22621.1626         329,032
smiengine.dll                   28/03/2023 07:11:58                         984,448
smipi.dll                       28/03/2023 07:11:58                          62,848
TiFileFetcher.exe               28/03/2023 07:11:59                         550,272
TiWorker.exe                    28/03/2023 07:11:58 10.0.22621.1626         292,224
turbocontainer.dll              28/03/2023 07:11:52 10.0.22621.1626         525,696
turbostack.dll                  28/03/2023 07:11:52 10.0.22621.1626       1,520,976
updateagent.dll                 28/03/2023 07:11:58                       3,425,648
WcmTypes.xsd                    07/05/2022 06:19:46                           1,047
wcp.dll                         28/03/2023 07:11:53 10.0.22621.1626       3,978,608
wdscore.dll                     28/03/2023 07:11:53 10.0.22621.1626         283,992
wrpint.dll                      28/03/2023 07:11:55                         148,864
--------------------------------------------------------------------------------------------------------------------------------------
File Hash [SHA256]  - C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_10.0.22621.1626_none_e930f5a242f053dd
--------------------------------------------------------------------------------------------------------------------------------------
amd64_installed                 18453C9F6DDC38C86A803D08A609256A44AAC57EF6C1E7B75AEA93B50BA465A8
CbsCore.dll                     B1E1F2E4638993E8B453A664FAAC53F57E35437AF5FF879603F4B961C2F55C87
CbsMsg.dll                      5BB9B9802431BE9597E6341B76C50461F68DA82A5730F1677B3EF405314A4AFE
dpx.dll                         2AFCA26449F32A98D5E2B7D4370725AAC3DE8ACDCD07EB26631CFB38ABB4D6D4
drupdate.dll                    37F1908284610903530B441ACBACE00F5725FF11FE2AFEF96B2CEBA2080E38DA
drvstore.dll                    B470A84AE3E0FEDD18D28E1F58756BEEBD427BBCD6B8FA6FD26E1675D31EB013
GlobalInstallOrder.xml          0788FF5BFF894B7CBA16DF2057AF97BC2FC6B1C1D5136FCCF6231CFA73755EC1
msdelta.dll                     05875B7F81A162D5E789AAE4042CED13A1DAC498FEDC0B0280A39EFCAD7828E5
mspatcha.dll                    95DFC67A7DE74C35179B606B4CE44B25E290DD18738B153FCE292C9BA8001838
poqexec.exe                     E0E8D02F76970292B9B266D7B18B6AD302722B6D1FDF86254CB466AB8BE9539A
ReserveManager.dll              E522083AA91349BE734E2AAC11796A61CD3C102ECDB8670C0C5E5734ED70B76B
smiengine.dll                   21327F94FC7015AB57EB1CCDD83E663FAF917DCE4D4ED506794C4039D6C518B3
smipi.dll                       5501D3E567A4E5CDED66FEE41F0F3A8E212BBD3B39A2B64742E5BD6D81531207
TiFileFetcher.exe               62289E3256F5AEC09BC14941ED01625F32201C7C21C281B6DE8E9B5205213747
TiWorker.exe                    C869F060EE84893F1C56B528A10CA65527121CA3BB0B63EE8FD35DDF60A19118
turbocontainer.dll              30B95493447C0B3171C0284BD567A5F37670C6BF8D224D94EA63E9D76886F59B
turbostack.dll                  510A9DC8AEEC2B576A6908F3DF9F424FAFC43158935D7B5079829FF03488F84D
updateagent.dll                 4A1CE220A3148F28702806D84123034C5DC9430F68A7FA9559D93A9824D17353
WcmTypes.xsd                    CD701B2BDD71894D2613DECBEE016446F8261D6CBB51493EEFF372530B00E1F1
wcp.dll                         2F13805CEB30AA8B0508BEAF167D59935D46F1C3A82B56E440E965AA58B8A9EB
wdscore.dll                     6C45FFEE70CCBAFA53FC8F9B674C44C9BAE2782705433E3EFA3F1ED3241D89EC
wrpint.dll                      083DA819CCBF6258956F6EBC224106B16F3B06932D1F80870EB47A579AD5DE5D

--------------------------------------------------------------------------------------------------------------------------------------
Modules in [C:\Windows\Servicing] (4 Files)
--------------------------------------------------------------------------------------------------------------------------------------
Filename            Modified        Version         Size (bytes)
--------------------------------------------------------------------------------------------------------------------------------------
CbsApi.dll                      07/05/2022 06:19:46 10.0.22621.1             79,200
CbsMsg.dll                      07/05/2022 06:19:46 10.0.22621.1             71,000
TrustedInstaller.exe            07/05/2022 06:19:46 10.0.22621.1            218,456
wrpintapi.dll                   07/05/2022 06:19:39 10.0.22621.1             32,768
--------------------------------------------------------------------------------------------------------------------------------------
File Hash [SHA256]  - C:\Windows\Servicing
--------------------------------------------------------------------------------------------------------------------------------------
CbsApi.dll                      BFD4BF859785C8B4B0AFAAEB7244E32C82899D7836729A580F2BE072BCCC5C5F
CbsMsg.dll                      4F589D30AB12F6D9939A9951BCBCE2CB632DE7F6AF51F6D8B4C5D8EFBE859155
TrustedInstaller.exe            A7046DD1900DAE0C6605493DFC61F3C5248E1901325F8427C8093B7B598DF6B0
wrpintapi.dll                   7B955C3D5863D50D2EF804CD6D57A6FE69FDCCF8E0EC181398225B5F439F2FAD

--------------------------------------------------------------------------------------------------------------------------------------
Modules in [C:\Windows\System32\Dism] (28 Files)
--------------------------------------------------------------------------------------------------------------------------------------
Filename            Modified        Version         Size (bytes)
--------------------------------------------------------------------------------------------------------------------------------------
AppxProvider.dll                07/05/2022 06:19:37 10.0.22621.1            693,608
AssocProvider.dll               07/05/2022 06:19:37 10.0.22621.1            140,624
CbmrProvider.dll                07/05/2022 06:19:37 10.0.22621.1            390,480
CbsProvider.dll                 04/01/2023 21:11:44 10.0.22621.608        1,099,112
DismCore.dll                    07/05/2022 06:19:46 10.0.22621.1            480,616
DismCorePS.dll                  07/05/2022 06:19:46 10.0.22621.1            210,272
DismHost.exe                    07/05/2022 06:19:46 10.0.22621.1            177,512
DismProv.dll                    07/05/2022 06:19:46 10.0.22621.1            304,464
DmiProvider.dll                 04/01/2023 21:11:44 10.0.22621.608          451,920
EdgeProvider.dll                07/05/2022 06:19:37 10.0.22621.1            210,264
FfuProvider.dll                 11/03/2023 18:54:44 10.0.22621.1344         700,416
FolderProvider.dll              07/05/2022 06:19:46 10.0.22621.1             95,576
GenericProvider.dll             04/01/2023 21:11:44 10.0.22621.608          181,616
IBSProvider.dll                 07/05/2022 06:19:37 10.0.22621.1             91,480
ImagingProvider.dll             07/05/2022 06:19:46 10.0.22621.1            255,336
IntlProvider.dll                04/01/2023 21:11:44 10.0.22621.608          333,152
LogProvider.dll                 07/05/2022 06:19:46 10.0.22621.1            116,048
MsiProvider.dll                 07/05/2022 06:19:37 10.0.22621.1            214,368
OfflineSetupProvider.dll        04/01/2023 21:11:44 10.0.22621.608          218,448
OSProvider.dll                  04/01/2023 21:11:44 10.0.22621.608          185,680
ProvProvider.dll                04/01/2023 21:11:44 10.0.22621.608          832,848
SetupPlatformProvider.dll       07/05/2022 06:19:37 10.0.22621.1            197,968
SmiProvider.dll                 04/01/2023 21:11:44 10.0.22621.608          312,656
SysprepProvider.dll             07/05/2022 06:19:37 10.0.22621.1            841,040
TransmogProvider.dll            07/05/2022 06:19:34 10.0.22621.1          1,389,912
UnattendProvider.dll            04/01/2023 21:11:44 10.0.22621.608          267,616
VhdProvider.dll                 11/03/2023 18:54:44 10.0.22621.1344         614,488
WimProvider.dll                 07/05/2022 06:19:46 10.0.22621.1            689,488
--------------------------------------------------------------------------------------------------------------------------------------
File Hash [SHA256]  - C:\Windows\System32\Dism
--------------------------------------------------------------------------------------------------------------------------------------
AppxProvider.dll                164834DE02F7E1F8F152D466B24D63E78D70DA458700969A1305E0DF7FB0EA6B
AssocProvider.dll               1C0232B85C69FBD72BBCBDAF6E9331BE8DAB7DED1E68BDC1AD9C8B6622884C50
CbmrProvider.dll                736E2A4D96F774EE72707864057E5D33B68DF0FA6F62BC0936B9C75445633ADD
CbsProvider.dll                 265F88DD4B04E729F8EDA08A0F4A5847C24F2B7CB5FD038C8DCB1555823A4E57
DismCore.dll                    6D9445AD2BB596686F939DC0C89171B1EA21E6CC84A3EA13851FC1AD7094D3BD
DismCorePS.dll                  5B0F41460325C4539417473313805FA63224C8F45C8F4AAEBA1CB06B37CCC243
DismHost.exe                    7E48FDDCA1227FC511CEFA2EE473DC9C7887270C1BB0ECDDC4A56F01B6C490E4
DismProv.dll                    D738CA24CE031A134AE23E3C6ACAA250ED5D26C3E3EF361A779EFB91A67361AB
DmiProvider.dll                 B20A63A47D3936047CEED3292D05F344290B492EE068964665291F1555E7A45B
EdgeProvider.dll                B6AA7FC3B3A08CC38D90B609D9514BECD6E255E24D1C9C2E973F83A03F973411
FfuProvider.dll                 679A444C06D7CB6B7ABE58341CFCC802D12B53D0556864DDBD9D93C9608ABBCD
FolderProvider.dll              34A4C98301BA0F4FB4365A75450E8AE8FDFF9D983A8D541E6F40CC7BA3401143
GenericProvider.dll             D8F9A3CB876AF7A2476568161FDA128537D0D4D042055F2CBBDE3EA0CB71AA53
IBSProvider.dll                 294553DFC09C62D0C5263BD7A912543501A3079437AD4E9D99C99E01FFE9D987
ImagingProvider.dll             75FF2CD4602FD14ABF64EA3CCE4C55DE902AC30AB28B008A333D368FCB9E6DBE
IntlProvider.dll                2F1FE0F6F5935DCDE5309D14A53065E27939B8D62E3A6995E2535BA5DEB7433C
LogProvider.dll                 400A3BC19FBD123A600C4B5936BF3A99848DD697D28C1FEFCD39D2642B9C1003
MsiProvider.dll                 D4A00E34E3DFE3BC27CB863503C257B2228BB34747547DEC5870541AC49288F9
OfflineSetupProvider.dll        0A89B238B524E20518D4BAC85B49A21DE90C8E8EC23AE411B7E65064156A18E3
OSProvider.dll                  A825AE862FD80363B3685E94D01A4CD003E8B9BA7C1E5E727997005552EC5ADD
ProvProvider.dll                370F714362A5156DEF06F5BFAC00E628157C1EE193048BEC72997EACEEFA352F
SetupPlatformProvider.dll       A5760B07D4C589029C6E7C0CC2DD8EB318F1D752CB506738259822F2ED308BA7
SmiProvider.dll                 F0922141C78F623E9894C22D02CD00A94289AEEC2AE8DBB447266B17A3DF7D6E
SysprepProvider.dll             768334B1F4677D2652F2EACFDC6DE32B84A81BD93B3CC3CC6CAD44F125AFA0D3
TransmogProvider.dll            D2218D3EE75279B19EB493D6C90ADCBCB43BE1F30CF121A5A201B43BE4CAE07E
UnattendProvider.dll            750D06C9823A09F730F4376890550DA9A12E22558C7A4B8AF887892C51198598
VhdProvider.dll                 BE6B511F0D1B84D2092F36C9BBFACD57DEC971A2189E7CD9CC9E1BFDDFDC1B3F
WimProvider.dll                 2B38B2C0BFB977BB95CE61185D8F402D694F49F81660303E55A9EE6DFC65C03B

--------------------------------------------------------------------------------------------------------------------------------------
REGISTRY: No IFEO Overrides present for core servicing files. Good!
--------------------------------------------------------------------------------------------------------------------------------------

Microsoft Windows [Version 10.0.22621.1555]


HotFixID   InstalledOn  

KB5012170  1/11/2023    

KB5022497  2/16/2023    

KB5025239  4/15/2023    

KB5025749  4/15/2023    

--------------------------------------------------------------------------------------------------------------------------------------
LOADED MODULES (Before starting DISM SCANHEALTH) at 27/05/2023 16:14:30
--------------------------------------------------------------------------------------------------------------------------------------
    See [%TEMP%\modules1.txt]
--------------------------------------------------------------------------------------------------------------------------------------
LOADED MODULES (During DISM SCANHEALTH) at 27/05/2023 16:14:42
--------------------------------------------------------------------------------------------------------------------------------------
    See [%TEMP%\modules2.txt]
--------------------------------------------------------------END OF LOG--------------------------------------------------------------

In the above log, version information for some DLLs (in table 1) isn’t displayed. It’s highly likely that those DLLs are corrupt and need to be replaced. You can source those files from the respective ISO, MSU, or another system running the same OS Build. The log also tells you if there are any Image File Execution Options entries that block the servicing stack executables from starting correctly.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded Winhelponline.com in 2005.

Leave a Comment