I am using the DISM command to mount the install.wim and adding few folders and file to the root folder c:\ and them committed the image file. then creating a bootable ISO with the modified the WIM file. but the folders and file I added to the image is not visible after the windows installation.
what am I missing here?
below is sequence of the steps
- Extract the original windows bootalble ISO into a folder "S:\MS Windows Server\Win2022"
- mount the WIM file using
dism /Mount-Wim /WimFile:"S:\MS Windows Server\Win2022\sources\install.wim" /Index:1 /MountDir:I:\Mount2022
- open the I:\Mount2022 in explorer and added few folders into it
- used the below command to commit the image
dism /Unmount-Wim /MountDir:I:\Mount2022 /Commit
- use anyburn/imageburn tools to create an ISO with the modified WIM file
- boot the server using the ISO and complete the setup.