WS2019 VM without internet access, by error introduced in PowerShell removed not only the feature but its payload from server
I really don't know what else to try, any help will be very much appreciated
Tried
PS C:\\Windows\\system32\> DISM /Online /Get-Features /Format:Table | FINDSTR "^MSMQ-"
MSMQ-Services | Disabled
MSMQ-Server | Disabled with Payload Removed
MSMQ-Triggers | Disabled with Payload Removed
MSMQ-ADIntegration | Disabled with Payload Removed
MSMQ-HTTP | Disabled with Payload Removed
MSMQ-Multicast | Disabled with Payload Removed
MSMQ-DCOMProxy | Disabled with Payload Removed
MSMQ-RoutingServer | Disabled with Payload Removed
Extracted info from an uploaded iso WS2019 matching build
dism /get-wiminfo /wimfile:E:\\sources\\install.wim
index for WS2019 Desktop install 2
mounted that image
Dism /Mount-Image /ImageFile:e:\\sources\\install.wim /Index:2 /MountDir:C:\\test\\ /readonly
Tried to enable the feature using the mounted image from previous step
DISM /Online /Enable-Feature /FeatureName:MSMQ-Server /All /LimitAccess /Source:C:\\test\\windows
Error: 0x800f081f* The source files could not be found. Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
The DISM log file can be found at C:\Windows\Logs\DISM\dism.log
Tried
*PS C:\\Windows\\system32\> Get-WindowsFeature MSMQ*
Display Name Name Install State
------------ ---- -------------
[ ] Message Queuing MSMQ Available
[ ] Message Queuing Services MSMQ-Services Available
[ ] Message Queuing Server MSMQ-Server Removed
[ ] Directory Service Integration MSMQ-Directory Removed
[ ] HTTP Support MSMQ-HTTP-Support Removed
[ ] Message Queuing Triggers MSMQ-Triggers Removed
[ ] Multicasting Support MSMQ-Multicasting Removed
[ ] Routing Service MSMQ-Routing Removed
[ ] Message Queuing DCOM Proxy MSMQ-DCOM Removed
Add-WindowsFeature MSMQ-Server -Source C:\\test\\Windows
Add-WindowsFeature : The request to add or remove features on the specified server failed.
Installation of one or more roles, role services, or features failed.
The source files could not be found.
Use the "Source" option to specify the location of the files that are required to restore the feature. For more information on specifying a source location, see http://go.microsoft.com/fwlink/?LinkId=243077.
Error: 0x800f081f
At line:1 char:1
+ Add-WindowsFeature MSMQ-Server -Source C:\\test\\Windows
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Install-WindowsFeature], Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManager.Commands.AddWindowsFeatureCommand
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Success Restart Needed Exit Code Feature Result
--------------------------------------------
False No Failed {}
Difference between mounted offline and online images
PS C:\Windows\system32> Dism /Image:C:\test\ /Get-Features /Format:Table | FINDSTR "^MSMQ-"
MSMQ-Services | Enabled
MSMQ-Server | Enable Pending
MSMQ-Triggers | Disabled
MSMQ-ADIntegration | Disabled
MSMQ-HTTP | Disabled
MSMQ-Multicast | Disabled
MSMQ-DCOMProxy | Disabled
MSMQ-RoutingServer | Disabled
PS C:\Windows\system32> DISM /Online /Get-Features /Format:Table | FINDSTR "^MSMQ-"
MSMQ-Services | Disabled
MSMQ-Server | Disabled with Payload Removed
MSMQ-Triggers | Disabled with Payload Removed
MSMQ-ADIntegration | Disabled with Payload Removed
MSMQ-HTTP | Disabled with Payload Removed
MSMQ-Multicast | Disabled with Payload Removed
MSMQ-DCOMProxy | Disabled with Payload Removed
MSMQ-RoutingServer | Disabled with Payload Removed
*** Fixed ***
Used the neighbouring UNC path to
\\SERVER\c$\Windows\WinSxSas source, which has the same Windows Server Version and build, managed to recover the payload and install the featureIf any further feature will be needed will need to be installed this way