I have Windows Server 2019 with the Terminal Services installed (RD Connection Broker, RD Licencing, RD Session Host and RD Web Access). Unfortunately, by accident, I removed the Default web site from the IIS server where RD Web Access was installed. I have attempted to reinstall RDS services. I was able to easily uninstall all RDS services except RD Web Access.
There is a 0x800f0922 error when I try to uninstall Web Access from Server Manager. Similarly, if I use PowerShell to remove the role (Uninstall-WindowsFeature -name RDS-Web-Access).
PS C:\Windows\system32> Uninstall-WindowsFeature -name RDS-Web-Access Uninstall-WindowsFeature : The request to add or remove features on the specified server failed. Removal of one or more roles, role services, or features failed. Error: 0x800f0922 At line:1 char:1+ Uninstall-WindowsFeature -name RDS-Web-Access+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Uninstall-WindowsFeature ], Exception+ FullyQualifiedErrorId : DISMAPI_Error__Failed_Disabling_Updates,Microsoft.Windows.ServerManager.Commands.RemoveW indowsFeatureCommand Success Restart Needed Exit Code Feature Result ------- -------------- --------- -------------- False No Failed {}