By default Windows only allows you to run sysprep on an image 3 times. Then Microsoft’s solution is to re-install and start a new image. Well what happens if you need to update your image or make a change without having to go through the hassle of making your image exactly what you want? Follow these steps:
- Start > Run > regedit
- HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus
- Set the following DWORD values:
- CleanupState: 0x00000002 (2)
- GeneralizationState: 0x00000007 (7)
- Set the following DWORD values:
- Start > Run > msdtc -uninstall
- Start > Run > msdtc -install
- Restart your machine.
You should now be able to run sysprep! W00t!
– Harry Caskey
4 Replies to “How to run sysprep more than 3 times”
I haven’t tried this yet but if it works I owe you big time. THANK YOU!!
Hi Rich,
This should work, please let me know if you have any questions!
-Harry Caskey
I have been fighting this problem for a week. I tried your solution and it didn’t work.
My reg entries are correct. I ran the uninstall and reinstall of msdtc, then rebooted.Does it take long for the uninstall to finish? I waited a bit and did not get an error or anything telling me it was completed. Anyway to tell if it was successful?
After performing your fix, syspreping and then rebooting the following happens”
On the first reboot I get an error that “windows cannot be configured for your hardware”
I then reboot and then get: Windows could not complete the installation”
Any help would be appreciated
(Sorry for the delay) Hmmm this sounds like there is another issue going on here other than with the sysprep. I would recommend to check the device drivers and make sure the devices are installed properly. Are you using this on a Virtual Machine? I’ve done this a dozen times and has worked for me following these instructions.