What I'm trying to do is a full install from original disk + install apps in audit user while the VM is in a dmz with dhcp/pxe booting capability, generalize, then reboot and specialize with a customizable fixed ip and oobe preconfigured.
I managed to create two unattend files :
1. One that goes from PE to Audit user (i.e. oobe pass reseal to Audit), with a synchronous command in audit user that ultimately call sysprep /oobe /generalize /reboot /unattend:\\fileserver\share\custom.xml
2. The custom.xml contains generalize, specialize (which is different from the first one) and oobe.
But the second file is not used correctly.
After calling sysprep, it logged in the sysprep\panther an error:
[sysprep.exe] UnattendFindAnswerFile: Looking at explicitly provided unattend file [\\fileserver\share\custom.xml]... [sysprep.exe] UnattendFindAnswerFile: [\\fileserver\share\custom.xml] meets criteria for an explicitly provided unattend file. SYSPRP SysprepSearchForUnattend: Using unattend file at [\\fileserver\share\custom.xml]. SYSPRP SysprepSearchForUnattend: [generalize] pass in unattend file [\\fileserver\share\custom.xml] either doesn't exist or passed validation SYSPRP WinMain:Found unattend file at [\\fileserver\share\custom.xml]; caching... SYSPRP WinMain:Processing unattend file's 'generalize' pass... SYSPRP Sysprep is running a generalize pass with the following unattend file: [%windir%\panther\unattend.xml]
My custom.xml seems not to have generalize pass or doesn't validate.
I have tried to copy the custom.xml directly in the %windir%\panther folder as unattend.xml. Same message appears, but as it fallback on the same one, it does the generalize pass with my custom step. So it's not so invalid as it appears first, weird.
But, at reboot, the file in %windir%\panther is no more the second file, but it has been overwrite with the first one, which leads me to oobe welcome screen (wasPassProcessed="true" attribute may prevent the loop to audit)
I don't know why it overwrites the new unattendfile and how to force him to use a new unattend file from audit user pass.
I should mention that in audit mode, everything happens before desktop appears and that the sysprep gui windows appears (the second one, surely from the first file that has not the reseal defined on audit pass).
Any idea ?
Someone had got the same issues but with no answer, a long time ago.