Whilst trying to sysprep a Windows Server 2008 R2 template I received the following error:
“A fatal error occurred while trying to sysprep the machine”
Lots of different problems can cause this error, and you need to go into the sysprep log to find out which one. Theere’s several copies lying around, so make sure you find the one with the last modified time of a few seconds ago. It should be in %WINDOWS%\system32\sysprep\Panther\setupact.log at the end.
I found this at the end:
Error [0x0f00a8] SYSPRP WinMain:Hit failure while processing sysprep cleanup providers; hr = 0x80100101
I already had SkipRearm in my unattended file, and I was setting the GeneralizationState reg values to the appropriate settings each time with a batch script, having hit that issue already, and this approach had been working consistently for ages. In this case, I additionally did:
and then rebooted. Sysprep then ran OK.