In Windows server 2019 getting error message (0x800f0922) during feature add/remove

sanjeev kumar 1 Reputation point
2022-08-10T05:04:29.053+00:00

I have trying to install MSMQ in the Windows server 2019 during the installation of MSMQ getting the error message (The request to add or remove features on the specified server failed. Installation of one or more roles role services, of feature failed 0x800f0922.) Please let me know the reason of this error message. For your reference screenshot attached.

229650-image.png

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,882 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Rafael da Rocha 5,176 Reputation points
    2022-08-10T11:18:24.523+00:00

    What's the content of cbs.log?

    Is the Default Website available in IIS? MSMQ-HTTP will try to use it on install.


  2. Limitless Technology 39,786 Reputation points
    2022-08-10T13:44:25.69+00:00

    Hi,

    Please check that you have not deleted the default website from the IIS installation as this will often cause this error.

    ------------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--


  3. Gary Reynolds 9,581 Reputation points
    2022-08-10T21:53:53.347+00:00

  4. sanjeev kumar 1 Reputation point
    2022-08-25T07:19:42.827+00:00

    Any update on this issue?

    0 comments No comments

  5. Niklas Engfelt 21 Reputation points Microsoft Employee
    2023-01-10T12:49:14.973+00:00

    MSMQ-HTTP can only be installed in default web site with site id#1. If you removed site id#1 or moved default web from #1 to other # it will fail. Ensure that you have site #1 present in IIS. Create a new site if you deleted old one and change its id to #1. https://learn.microsoft.com/en-gb/archive/blogs/johnbreakwell/unable-to-install-msmq-http-support-0x80070003

    For Windows 2019 there was a known issue in RTM version related to mitigation policies. If your domain has GPOs with the mitigation policies turned on, MSMQ fails to install. The issue has been fixed in later WindowsUpdates on top of Windows 2019 so make sure to have latest Windows updates installed before installing MSMQ if you have mitigation policies. The same applies also to some IIS features.

    After Windows updates, perhaps you can try complete reinstall of MSMQ. Sometimes there can be permissions problems on the MSMQ AD sub-object if AD-integration mode was installed. There can also be mismatch between local QMId in registry and MSMQ AD sub-object id (they should match). Object id and QMId GUID are in different formats, but end characters are in same place if comparing.

    :: Uninstall all MSMQ features (admin cmd) DISM.exe /Online /Get-Features /Format:Table | find /I "msmq" DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-Container /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-Services /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-HTTP /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-ADIntegration /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-Multicast /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-RoutingServer /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-Server /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ-DCOMProxy /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:WCF-MSMQ-Activation45 /NoRestart DISM.exe /Online /Disable-Feature /FeatureName:MSMQ /NoRestart DISM.exe /Online /Get-Features /Format:Table | find /I "msmq"

    :: Install RSAT AD powershell module to be able to query AD (admin powershell) Install-WindowsFeature RSAT-AD-PowerShell

    :: Delete the MSMQ AD Sub-object in AD after uninstalling MSMQ with AD-integration enabled. If you are not admin of the computer object you may not be able to do this. Then give the $msmqdn to AD admin and ask them to delete this msmq sub-object: $msmqdn = "CN=msmq," + (Get-ADComputer -Identity $env:COMPUTERNAME -Properties DistinguishedName).DistinguishedName Get-ADObject -Identity $msmqdn -Properties * :: Remove MSMQ AD subobject. If public queues exist and you want to remove all, add -Recursive parameter also Get-ADObject -Identity $msmqdn | Remove-ADObject # -Recursive

    :: Delete C:\Windows\System32\MSMQ :: Delete HKLM\Software\Microsoft\MSMQ

    :: Reboot

    :: Repair Windows in case of some corruption DISM /Online /Cleanup-Image /RestoreHealth sfc /scannow

    :: Reboot

    :: Install MSMQ features again. Start with core features only and then add more features later to see if core feature works DISM.exe /Online /Enable-Feature /FeatureName:MSMQ-Server /All

    :: Later if needed add more MSMQ features DISM.exe /Online /Enable-Feature /FeatureName:MSMQ-ADIntegration /All DISM.exe /Online /Enable-Feature /FeatureName:MSMQ-HTTP /All

    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.