What's the content of cbs.log?
Is the Default Website available in IIS? MSMQ-HTTP will try to use it on install.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
What's the content of cbs.log?
Is the Default Website available in IIS? MSMQ-HTTP will try to use it on install.
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--
Hi,
It may not be related but it's worth checking just in case.
Gary.
Any update on this issue?
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