You maintain a custom Windows 11 Enterprise multi-session image for an Azure Virtual Desktop host pool. On a technician workstation, you have mounted the image's Windows partition at C:\mount\windows. You downloaded the latest cumulative update (LCU) to C:\Updates\LCU.msu. Any prerequisite updates for the LCU are already installed in the mounted image.
Requirements:
- The update must be added to the mounted image.
- The technician workstation's own Windows installation must not be changed.
Which command should you run next?
The image is mounted offline, so DISM must target its mount folder with /Image and add the package with /Add-Package. The /Online form services the Windows installation that is currently running, which here is the technician workstation. Listing packages is a verification step, and unmounting with commit comes only after the update has been added.
- Not correct:
Dism /Unmount-Image /MountDir:"C:\mount\windows" /Commit. Unmounting and committing is the final step once you have finished updating a mounted image; run now, it would save the image without the LCU. - Not correct:
Dism /Image:"C:\mount\windows" /Get-Packages. /Get-Packages only lists the packages in the image so you can verify them after adding; it does not add the LCU. - Correct:
Dism /Image:"C:\mount\windows" /Add-Package /PackagePath="C:\Updates\LCU.msu". The /Image parameter points DISM at the mounted offline image, and /Add-Package adds the update package to it, which is the documented way to add a cumulative update to a mounted image. - Not correct:
Dism /Online /Add-Package /PackagePath="C:\Updates\LCU.msu". /Online is the form used to add an update to a running Windows installation, so it would update the workstation itself rather than the mounted image.
- Add updates to a Windows imageMicrosoft Learn