Windows Server 2019 RDS: Install Error: dismapi_error__failed_to_enable_updates rds-web-access

In Windows Server 2019, if you ever find yourself hit by a bug when you try to add the rds-web-access, then please follow these step;

Problem

In the eventlog

Install-WindowsFeature RDS-Web-Access -IncludeAllSubFeature
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent…Name=localhost}:PSObject) [Install-WindowsFeature],
Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand

Step tried

  • Installing with Server Manager GUI
  • DISM /Online /Cleanup-Image /RestoreHealth
  • DISM /Online /Cleanup-Image /RestoreHealth /Source:wim:D:\sources\install.wim:1 /limitaccess
  • sfc /scannow
  • Install-WindowsFeature RDS-Web-Access -source D:\sources\install.wim
  • Install-WindowsFeature RDS-RD-Server -IncludeAllSubFeature will work at first, but revert the change at the reboot.

Issue

A previous installation of IIS is the culprit

Solution

Removing IIS:

iis-1iis-2

After that; then you migh have to remove the IIS directory completly;

netsh http show urlacl

netsh http delete urlacl http://+:80/ netsh http delete urlacl https://+:443/

Windows Machine Unknown state on ESX

Today I will share a small tip if your Windows VM get an Unknown state in your ESX.

3-23-2017 1-14-36 PM

The problem can be easily fixed by first removing the machine from the inventory, without deleting the files.

3-23-2017 1-15-26 PM

After that you will have to go back into your datastore to re-add the machine back to the inventory, by right-clicking the .VMX file, and select the Add to Inventory option.

3-23-2017 1-15-04 PM

 

After that the state will be green 🙂