Server 2019: Disabling a feature fails with STATUS_SXS_ASSEMBLY_MISSING

MsdnUsrSince1994 6 Reputation points
2022-12-20T00:07:08.577+00:00

[This was previously asked on answers.microsoft.com, microsoft.com is so dysfunctional]

I am trying to harden an online cloud server by removing unused Windows components. Specifically, I am trying to remove the printing feature as the server will not be doing anything printing related.

However the DISM command to disable the unwanted feature returns STATUS_SXS_ASSEMBLY_MISSING (mapped to localized English text), most of the generic tricks found for the error code either fail or do nothing, and Bing search lacks the ability to focus the search (because the boolean search operators have been removed).

Commands that don't seem to fix things "SFC /ScanNow" "DISM /Online /Cleanup-Image /RestoreHealth" "dism /online /Cleanup-Image /ScanHealth"

Trying with PowerShell commands also fails.

Primary commands attempted and their output (from an elevated command prompt):

C:\Users\myaccount>dism /online /Disable-Feature /FeatureName:Server-Drivers-Printers  
  
Deployment Image Servicing and Management tool  
Version: 10.0.17763.3406  
  
Image Version: 10.0.17763.3650  
  
Disabling feature(s)  
[==========================100.0%==========================]  
  
Error: 14081  
  
The referenced assembly could not be found.  
  
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log  
  
C:\Users\myaccount>type C:\Windows\Logs\CBS\CBS.log | FINDSTR /V /C:", Info   "  
  
2022-12-19 17:25:35, Error                 CSI    00000008@2022/12/19:17:25:35.785 (F) onecore\base\wcp\componentstore\csd_locking.cpp(95): Error STATUS_SXS_ASSEMBLY_MISSING originated in function CCSDirectTransaction::LockComponent expression: (null) [gle=0x80004005]  
2022-12-19 17:25:39, Error                 CSI    00000009 (F) STATUS_SXS_ASSEMBLY_MISSING #40307# from CCSDirectTransaction::OperateEnding at index 0 of 1 operations, disposition 2 [gle=0xd015000c]  
2022-12-19 17:25:39, Error                 CSI    0000000a (F) HRESULT_FROM_WIN32(ERROR_SXS_ASSEMBLY_MISSING) #40149# from Windows::ServicingAPI::CCSITransaction::ICSITransaction_PinDeployment(Flags = 0, a = dual_prnms002.inf, version 10.0.17763.1852, arch amd64, nonSxS, pkt {l:8 b:31bf3856ad364e35}, type [l:14]'dualModeDriver', cb = (null), s = (null), rid = 'Package_2893_for_KB5001342~31bf3856ad364e35~amd64~~10.0.1.5.5001342-5310_neutral', rah = '2', manpath = (null), catpath = (null), ed = 0, disp = 0) [gle=0x80073701]  
2022-12-19 17:25:39, Error                 CBS    Failed to process single phase execution. [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
2022-12-19 17:25:44, Error                 CBS    Failed to perform operation.  [HRESULT = 0x80073701 - ERROR_SXS_ASSEMBLY_MISSING]  
  
C:\Users\myaccount>  
Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,886 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. MsdnUsrSince1994 6 Reputation points
    2022-12-22T00:29:35.007+00:00

    Replacing a running server just to fix a minor issue in a system database is the kind of non-solution that only a lazy PSS employee would suggest to avoid doing their job.

    As clearly stated, the operation was to remove a feature, not add one. So the references to ancient cases about language packs seem dubious.

    I already researched the error code and log contents and found that the CBS log messages suggest an inability to find subpackage 2893 (prnms002.inf) of the KB5001342 April 2021 monthly roll up update and I have downloaded and unpacked the update, however I have found no practical instructions to restore the missing data from that update so the CBS subsystem can return to a consistent state.

    1 person found this answer helpful.

  2. Anonymous
    2022-12-20T15:52:00.287+00:00

    0x80073701 = ERROR_SXS_ASSEMBLY_MISSING which means there are some system files are missing, which caused the failure. You can also try a repair install by running setup.exe from the root of the install.

    I wouldn't hold much hope for this, time may be better spent standing up a new one, patch it fully, migrate the roles or applications over to it, and move on.

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  3. Anonymous
    2022-12-23T03:47:33.783+00:00

    There is no setup.exe neither in C:\ nor in C:\Windows\System32 on this system

    Yes, correct, it is on the installation media, but as I mentioned I wouldn't hold much hope for a repair install to fix anything. Time would be better spent standing up a new one, patch it fully, migrate the roles or applications over to it, and move on.

    --please don't forget to upvote and Accept as answer if the reply is helpful-


  4. Mark Vickers 0 Reputation points
    2025-01-20T17:21:34.7066667+00:00

    I wonder why nobody wanted to help you when you are so polite?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.