Windows Server Core LTSC 2022 container – Unable to install Media Foundation (Server-Media-Foundation)

Nidhin Unni 20 Reputation points
2026-01-20T15:03:40.43+00:00

Hi everyone,

I’m using the mcr.microsoft.com/windows/servercore:ltsc2022 Docker image and trying to install Media Foundation inside the container.

When I run:

Install-WindowsFeature Server-Media-Foundation

I get the following error:

Install-WindowsFeature :

This works fine on a full Windows Server 2022 VM, but consistently fails inside the container.

Questions:

  1. Is Media Foundation supported at all in Windows Server Core containers?
  2. If not, is there any supported workaround (base image change, feature layering, or host dependency)?
  3. Has anyone successfully enabled Media Foundation (or components like mfplat.dll) inside a Windows container?

Any guidance from folks who’ve hit this limitation before would be appreciated.

Thanks!

Windows for business | Windows Server | Windows cloud | Deploy Azure Local
0 comments No comments

Answer accepted by question author
Jason Nguyen Tran 25,690 Reputation points Independent Advisor
2026-01-20T15:47:53.58+00:00

Hi Nidhin Unni,

The behavior you’re seeing is expected, Media Foundation (Server‑Media‑Foundation) is not supported inside Windows Server Core LTSC 2022 containers. Containers are designed to run a minimal footprint of Windows components, and features that depend on multimedia frameworks like Media Foundation are excluded by design. That’s why the same command works fine on a full Windows Server VM but fails consistently in the container image.

At this time, there isn’t a supported way to layer Media Foundation into a Server Core container. If your workload requires Media Foundation APIs (such as mfplat.dll), the recommended approach is to run it on a full Windows Server installation or a Windows client container image that includes multimedia components. Alternatively, you can consider restructuring the workload so that the container handles non‑media tasks, while media processing runs on the host or a VM with Media Foundation enabled.

If you find this answer helpful, please hit “Accept Answer” so I know your concern is resolved.

Jason.

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Newest
  1. Jason Nguyen Tran 25,690 Reputation points Independent Advisor
    2026-01-26T07:11:36.76+00:00

    Hi Nidhin Unni,

    I hope everything is going well. Have you managed to fix the problem on your side or anythings else I can help with? If the solution worked for you, please consider selecting “Accept Answer” to help others find it more easily. Much appreciated!

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-01-20T15:03:54.04+00:00

    Media Foundation is not supported in Windows Server Core containers, including the mcr.microsoft.com/windows/servercore:ltsc2022 image. The Server Core version of Windows does not include all the features available in the full Windows Server installation, and certain components like Media Foundation are not available in the container environment.

    As for workarounds, there are no officially supported methods to enable Media Foundation or its components like mfplat.dll within a Windows container. You may consider using a full Windows Server VM if you require Media Foundation functionality for your applications.

    If you are looking for alternatives, you might explore other media processing libraries that do not rely on Media Foundation, or consider using a different base image that supports the features you need, but this may not guarantee the availability of Media Foundation either.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.