WIM Replace the answer file in an offline image

posted in: Allgemein | 0

  1. Create a custom answer file in Windows System Image Manager (Windows SIM).
  2. Open an elevated command prompt.
  3. Mount the Windows image.
    Dism /Mount-Image /ImageFile:"C:\images\CustomImage.wim" /Index:1 /MountDir:C:\mount
  4. Modify or replace the file: \Windows\Panther\unattend.xml in the mounted image.
    Copy CustomAnswerFile.xml C:\mount\Windows\Panther\unattend.xml
    The answer file in the image may contain settings that have not yet been processed. If you want these settings to get processed, edit the existing file rather than replacing it.
  5. Unmount the image.
    Dism /Unmount-Image /MountDir:C:\mount /Commit
  6. Test the image by deploying it to a new PC, without specifying an answer file. When Windows Setup runs, it finds and uses this answer file.