Hi all, I was trying to install Server-Media-Foundation in my windows servercore ltsc2022 container with command:
Install-WindowsFeature Server-Media-Foundation
It gave error message below:
Install-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
https://go.microsoft.com/fwlink/?LinkId=243077. Error: 0x800f081f
At line:1 char:1
+ Install-WindowsFeature Server-Media-Foundation
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (@{Vhd=; Credent...Name=localhost}:PSObject) [Instal
l-WindowsFeature], Exception
+ FullyQualifiedErrorId : DISMAPI_Error__Failed_To_Enable_Updates,Microsoft.Windows.ServerManage
r.Commands.AddWindowsFeatureCommand
Success Restart Needed Exit Code Feature Result
------- -------------- --------- --------------
False No Failed {}
It seems I could try to speficy a source for it, but I cannot find a media foundation source for current version.
Can anyone help? Many thanks!
Host OS: Windows 11 21h2
Container Image: servercore:ltsc2022