Skip to content

ADK DISM in a Windows Container #576

@bewster

Description

@bewster

When I run DISM from the ADK Installation it just shows a blank line, doesn't do anything and returns the command prompt.

DISM under C:\Windows\System32 runs fine.

Not sure who\where to ask about this.

My Dockerfile is:

FROM mcr.microsoft.com/windows/servercore:ltsc2022

# Windows ADK - ADK 10.1.26100.2454 (December 2024)
ADD https://go.microsoft.com/fwlink/?linkid=2289980 C:/Users/ContainerAdministrator/Downloads
RUN C:/Users/ContainerAdministrator/Downloads/adksetup.exe /features OptionId.DeploymentTools /quiet /ceip off

# Windows PE add-on - ADK 10.1.26100.2454 (December 2024)
ADD https://go.microsoft.com/fwlink/?linkid=2289981 C:/Users/ContainerAdministrator/Downloads
RUN C:/Users/ContainerAdministrator/Downloads/adkwinpesetup.exe /quiet /ceip off

The script, I am porting over from running in a VM (Win 11), starts with:

echo Configuring Deployment and Imaging Tools Environment
call "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\DandISetEnv.bat"

After that all calls to DISM do nothing.

Unsure what the differences are between the two DISM tools, and if I can just do my task(s) without configuring the environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedtriageNew and needs attention

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions