Unable to add/remove roles on server 2019

Fernando Ruiz 1 Reputation point
2022-11-18T19:10:09.83+00:00

When i attempt to launch the add/remove role wizard, i get this error:

![261959-image.png]

When trying Get-WindowsFeatures I get:

261930-image.png

It sounds like windows installer is having issues as well as i am not able to install some programs or remove some programs.. when attempting to remove or install i get this:

262061-image.png

Here is my dism.log

261977-dism.log

I tried sfc /scannow, dism /restorehealth, chkdsk, updating windows, mofcomp, re-installing windows installer (msi.dll, msihnd.dll msiexec.exe), different admin account. used MSERT found nothing. tried safe mode, didn't work. made sure msiservice was running. I'm out of ideas.

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,481 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
422 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,390 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Dave Patrick 426.1K Reputation points MVP
    2022-11-18T19:14:40.597+00:00

    An old one but still may be helpful.
    https://support.microsoft.com/en-us/topic/-windows-installer-service-could-not-be-accessed-error-message-when-installing-application-2b29fc85-f5a5-3db7-08d8-cdc3b2e216d9

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


  2. Dave Patrick 426.1K Reputation points MVP
    2022-11-21T16:17:20.147+00:00

    Sounds good, you can also try a repair install by running setup.exe from the root of the install media, but I wouldn't hold much hope for this working. Time may be better spent standing up a new one, patch fully, migrate roles over and move on.

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


  3. Dave Patrick 426.1K Reputation points MVP
    2022-11-21T18:26:03.467+00:00

    Sounds good, that's what I would have expected. Standing up a new one, patch fully, migrate roles over and move on is the better solution.

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