Проблема видалення служби Message Queuing (MSMQ) відкривається у випадках, коли доступ до Інтернету відсутній, а встановлені необхідні пакети та компоненти видаляються некоректно через помилки у скриптах PowerShell. Це може призвести до втрати не лише самої функціональності, але й відповідних файлів із пакунками, що ускладнює подальшу перевстановлення.
Одним із способів вирішення цієї проблеми є використання інструментів, таких як Deployment Image Servicing and Management (DISM) у поєднанні з встановленням образу операційної системи з файлу ISO.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
Код: MSMQ Removed including payloads in a VM without internet and cannot reinstall even with a mounted image. 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 the 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 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 |