Windows install failed after sysprep on 24H2
Posted by ddCorazon@reddit | sysadmin | View on Reddit | 8 comments
Hello everyone,
Hope your'all doing well
I have an issue on Windows during installation with sysprep.
To give you some context, I created a Windows 11 24H2 VM, then from audit mode, I updated it to the latest version with build 26100.4484, KB5060829.
I then performed a sysprep with the command:
sysprep.exe /generalize /oobe /shutdown
Once done, I booted from the ISO, ran a DISM, then captured an image of the C drive, and used the generated install.wim file to replace the default one in the Windows ISO and created a new ISO.
the commande used to capture is
DISM /Capture-Image /ImageFile:D:\install.wim /CaptureDir:C:\ /Name:"Win11Custom"
The problem Iām facing is that when the installation starts, towards the end, I get an error message: "Windows installation failed."
Here are the logs I found in setuperr.log under X: $WINDOWSBT\sources\panther
2025-07-07 12:45:49, Error MOUPG CUnattendManager::Initialize(90): Result = 0x80070490[gle=0x00000002]
2025-07-07 12:45:49, Error MOUPG CMoSetupOneSettingsHelperT
2025-07-07 12:45:49, Error MOUPG CSetupHost::InitializeOneSettings(1551): Result = 0x80072EE7
2025-07-07 12:45:49, Error MOUPG SetupHost: OneSettings initialization failed: [0x80072EE7]
2025-07-07 12:45:49, Error MOUPG CSetupManager::GetWuIdFromRegistry(12357): Result = 0x80070002.
I tried many things like disable network card, running install with and without internet, adding unattend file before sysprep with this
adding unattend.xml in sources\$OEM$\$$\Panther\unattend.xml
I cannot manage to make it work, still failed after install.
Does someone have an idea?
Thanks
BlackV@reddit
you cant just replace the install.wim like that (well, not nicely)
sounds like you let the inbox apps update before you syspreped
this is not the way to do this, if you've captured an image, then just apply that image to the machine
whats you actual goal here ? cause it sure isn't what you're asking help for
ddCorazon@reddit (OP)
Hey thanks for your response.
The goal is to take a machine, install the applications that my clients will use, then create a new ISO from that image and provide it to my clients.
I've done that since windows 10 et lately with windows 11 23h2š .
Do you have another method to suggest? (For specific reasons, we can't use a deployment server.)
BlackV@reddit
I see. Well the issue of updating inbox apps causing sysprep to fail existed in win 10 as well
Basic process I'd do
Which I guess is about what you're doing, but online
ddCorazon@reddit (OP)
I di that for the first time yes, and i thought maybe that's the problem, then i did like you said with no internet on the VM, same result, i even try it with a physical machine fresh installwith no internet and no own apps installed (thinking maybe the issue with the apps i installed) and still the same issue
Suryavarman-II@reddit
After capturing, mount the install.wim file and go to the C:\Windows\Panther folder. Delete the unattend.xml file. If you used autounattend.xml to enter audit mode, there would be two unattend.xml files. You need to delete them. Then unmount the image and it should work.
ddCorazon@reddit (OP)
Hey Thnaks for the response.
I don't have a unattend.xml file ine the folder C:\Windows\Panther folder when i mounted the wim file.
I entered in audit mode by pressing Ctrl + Alt + F3 at the OOBE setup after fresh install of windows
slugshead@reddit
Wow, haven't done that method since Windows 7.
I push images out now with configmgr, give it a raw .wim file and do everything through the task sequence.
On a side note... I did 150 Windows 11 24H2 computers this morning, had about 8 failures, with very different errors each time.
ddCorazon@reddit (OP)
Hey,
Thanks for the response. Yeah I've done that since windows 10 et lately with windows 11 23h2š . (For specific reasons, we can't use a deployment server.)