Sysprep – A fatal error occurred while trying to sysprep the machine

2 Feb

While sysprepping my golden image for my VDI collection I got this error:

syspreperror1Most people who got this was because the rearm count had been reached, but that was not the case for me.

Use this command to check: slmgr /dlv

Once I checked the log (C:\Windows\System32\sysprep\Panther\seterr.log) it mentioned Microsoft Security Essentials, which I had removed from the image since the last sysprep.

Thanks to this blog, it turns out that there was some old MSSE information left in the registry

syspreperror2

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup\Sysprep\Cleanup\2D153B43-11B4-461f-AA43-832B2C8B8872\

This needed to be deleted (although the permissions at the level has to fist be changed to allow me to delete the key)

Once done the sysprep ran fine.