cshirley101675
New Member
- Messages
- 14
- Reaction score
- 0
Hi folks, I am trying to create an automated solution to refresh my build images, but keep running into a problem with this error. I can verify that the install.wim file does exist prior to launching.

if exist "D:\NTLite_Files\Win11_Pro_Image2\" rmdir "D:\NTLite_Files\Win11_Pro_Image2\" /s /q
xcopy "D:\NTLite_Files\Win11_Pro_Image1" "D:\NTLite_Files\Win11_Pro_Image2\" /s /e /h
xcopy "D:\NTLite_Files\$OEM$" "D:\NTLite_Files\Win11_Pro_Image2\sources\$OEM$\" /s /e /h
powershell -command "Start-Sleep -Seconds 20"
D:\NTLite\NTLite.exe /LoadImage:"D:\NTLite_Files\Win11_Pro_Image2\sources\install.wim" /ImageIndex:1 /LoadPreset:"Carlton_Win11" /CreateIso:"D:\NTLite_Files\Carlton_Win11.iso" /IsoLabel:"Carlton_Win11" /ExitAfter:1
if exist "D:\NTLite_Files\Win11_Pro_Image2\" rmdir "D:\NTLite_Files\Win11_Pro_Image2\" /s /q
I think it is failing on this command line:
D:\NTLite\NTLite.exe /LoadImage:"D:\NTLite_Files\Win11_Pro_Image2\sources\install.wim" /ImageIndex:1 /LoadPreset:"Carlton_Win11" /CreateIso:"D:\NTLite_Files\Carlton_Win11.iso" /IsoLabel:"Carlton_Win11" /ExitAfter:1
Any idea why?
Note: I am running this via a Jenkins script (locally on my desktop in interactive mode). NTLite does launch, but I always get this error.
Thanks in advance.

if exist "D:\NTLite_Files\Win11_Pro_Image2\" rmdir "D:\NTLite_Files\Win11_Pro_Image2\" /s /q
xcopy "D:\NTLite_Files\Win11_Pro_Image1" "D:\NTLite_Files\Win11_Pro_Image2\" /s /e /h
xcopy "D:\NTLite_Files\$OEM$" "D:\NTLite_Files\Win11_Pro_Image2\sources\$OEM$\" /s /e /h
powershell -command "Start-Sleep -Seconds 20"
D:\NTLite\NTLite.exe /LoadImage:"D:\NTLite_Files\Win11_Pro_Image2\sources\install.wim" /ImageIndex:1 /LoadPreset:"Carlton_Win11" /CreateIso:"D:\NTLite_Files\Carlton_Win11.iso" /IsoLabel:"Carlton_Win11" /ExitAfter:1
if exist "D:\NTLite_Files\Win11_Pro_Image2\" rmdir "D:\NTLite_Files\Win11_Pro_Image2\" /s /q
I think it is failing on this command line:
D:\NTLite\NTLite.exe /LoadImage:"D:\NTLite_Files\Win11_Pro_Image2\sources\install.wim" /ImageIndex:1 /LoadPreset:"Carlton_Win11" /CreateIso:"D:\NTLite_Files\Carlton_Win11.iso" /IsoLabel:"Carlton_Win11" /ExitAfter:1
Any idea why?
Note: I am running this via a Jenkins script (locally on my desktop in interactive mode). NTLite does launch, but I always get this error.
Thanks in advance.