70-695 · Question #52
In Sources.wim, you have a Windows 8.1 image named Image1. You have an application named App1.exe. App1.exe is a self-contained application that does not require installation. You mount Image1. You…
The correct answer is D. Copy-Item and the Path and Destination parameters. After mounting a WIM image, it behaves like a regular file system. To add a self-contained executable to the image, you would first copy the file into the mounted image's file structure.
Question
In Sources.wim, you have a Windows 8.1 image named Image1. You have an application named App1.exe. App1.exe is a self-contained application that does not require installation. You mount Image1. You need to add Appl.exe to Image1. What should you run first?
Options
- AAdd-ProvisionedAppxPackage and the Path and FolderPath parameters
- Bimagex.exe and the Append and Config parameters
- Cdism.exe and the Image and AddPackage parameters
- DCopy-Item and the Path and Destination parameters
How the community answered
(28 responses)- A4% (1)
- C4% (1)
- D93% (26)
Why each option
After mounting a WIM image, it behaves like a regular file system. To add a self-contained executable to the image, you would first copy the file into the mounted image's file structure.
`Add-ProvisionedAppxPackage` is used for adding AppX packages (modern Windows apps), not traditional self-contained .exe applications.
`imagex.exe` is an older tool for WIM image management, and its `Append` and `Config` parameters are not for directly adding files to a mounted image; `dism.exe` is the current tool.
`dism.exe /Add-Package` is used for adding Windows update packages (.cab, .msu) or feature packages to an image, not for directly copying a standalone application executable.
When a WIM image is mounted, its contents are exposed as a regular file system location. To add a self-contained application like App1.exe, the first step is to simply copy the executable file to the desired location within the mounted image's file structure, which is achieved using the `Copy-Item` cmdlet in PowerShell.
Concept tested: Adding files to a mounted WIM image
Source: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/mount-and-modify-a-windows-image-using-dism
Topics
Community Discussion
No community discussion yet for this question.