Hi,
I used to create Windows 10 ISOs for automated installation from a boot-stick.
Therefore I installed Windows on a VM, installed Updates, SW and so on. I did a sysprep, captured the wim file with dism.
This wim file wass splitted into swm files.
Next step was creating the ISO with a customized copype file in Windows Kits Preinstallation Environment.
When I want to install a new VM or physical PC with this ISO I get an error.
"Error setting wim reference file.
Error restoring image.
Cannot created a file when that file already exists."
The process when booting from stick is the following:
diskpart automatically creates gpt partitions
next step is a script called install.cmd
It´s written like this:
diskpart /s x:\tools\diskpart.txt
if exist d:\sources\install.swm goto lectd
if exist e:\sources\install2.swm goto lecte
if exist f:\sources\install3.swm goto lectf
if exist g:\sources\install4.swm goto lectg
:lectd
imagex /apply d:\sources\install.swm /ref d:\sources\install*.swm 1 c:
c:\windows\system32\bcdboot c:\windows /s S: /f ALL
pause
shutdown -s -t 00
:lecte
imagex /apply e:\sources\install.swm /ref e:\sources\install*.swm 1 c:
c:\windows\system32\bcdboot c:\windows /s S: /f ALL
pause
shutdown -s -t 00
:lectf
imagex /apply f:\sources\install.swm /ref f:\sources\install*.swm 1 c:
c:\windows\system32\bcdboot c:\windows /s S: /f ALL
pause
shutdown -s -t 00
:lectg
imagex /apply g:\sources\install.swm /ref g:\sources\install*.swm 1 c:
c:\windows\system32\bcdboot c:\windows /s S: /f ALL
pause
shutdown -s -t 00
This worked the last time I created an image with this procedure (I guwess it was windows 10 18xx, 3 years ago).
Has anyone an idea or can help me out why the error appears?