Mick's IT Blogs

My blog is here to help solve issues I have encountered and solved, publish scripts I have written, and educate others in understanding areas that are not well covered.

Mick's IT Blogs

16 August 2011

Fixing the "A fatal error occurred while trying to sysprep the machine" error

This occurs when a Windows 7 system has been sysprepped three times -- KB929828. To overcome this, you will need to do the following:

1) Inside the Sysprep Unattend.xml file located at c:\windows\system32\sysprep, delete skiprearm=1 from the section. In order to edit the Unattend.xml file, you will need to slave the HDD onto a working machine in order to have access to a text editor for editing the file.

2) Under HKEY_LOCAL_MACHINE\SYSTEM\Setup\Status\SysprepStatus\, set GeneralizationState to 7

3) From an administrative command prompt, type the following
msdtc -uninstall
msdtc -install

4) Under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\, change SkipRearm to 1

5) disconnect the ethernet cable

6) Rerun the sysprep

16 Comments:

At June 1, 2012 at 6:24 AM , Blogger Francisco said...

Thank you Mick!
Cheers

Francisco

 
At August 6, 2012 at 9:35 AM , Anonymous Anonymous said...

Very nice, thanks

 
At August 8, 2012 at 12:59 PM , Anonymous Anonymous said...

Great Post, do you have reset the reg key after creating the image?

 
At August 8, 2012 at 1:07 PM , Blogger Mick said...

No, if it successfully sysprepped and you were able to capture an image, then there is nothing that has to be done with the reg key.

 
At September 19, 2012 at 10:50 PM , Anonymous Anonymous said...

Great - I have been looking for a successful resolution to this problem for a very long time!!

Thank you very much.

 
At October 1, 2012 at 10:15 AM , Blogger Ruben Perez said...

I love you already.... Thanks a lot for this article.

 
At October 1, 2012 at 12:36 PM , Anonymous Anonymous said...

Thank you! Saved me the pain of rebuilding an image from scratch!

 
At October 25, 2012 at 9:26 PM , Blogger Sam Bibik said...

Thanking you :) Worked a treat.

 
At November 2, 2012 at 3:05 PM , Anonymous Anonymous said...

THANK YOU SO MUCH!!!

Greetings from Cananda

 
At November 15, 2012 at 4:44 PM , Blogger Cordell said...

I'm a bit confused with "delete 1 from the section" in the Unattended.xml file. What section are we talking?

 
At November 22, 2012 at 2:53 PM , Blogger matt_0978 said...

Yes, I can't find that unattended.xml file either.

 
At November 26, 2012 at 2:56 PM , Blogger Mick Pletcher said...

Cordell, sorry about the mixup. I recently hired a developer to update my blogs here to a more professional look and this part accidentally got removed. I readded the skiprearm=1 back. That was the missing portion.

 
At December 21, 2012 at 3:36 PM , Anonymous Anonymous said...

Thanks a bunch!! This was preventing me from getting my image out to machines that needed it.



Minnesota

 
At March 26, 2013 at 10:28 AM , Anonymous Anonymous said...

you will need to slave the HDD onto a working machine in order to have access to a text editor for editing the file.

................How should i do this sir ??

 
At March 27, 2013 at 1:51 AM , Anonymous Anonymous said...

It worked for me. Many Thanks!!

 
At March 27, 2013 at 1:20 PM , Blogger Mick Pletcher said...

Here is a good tutorial on how to slave your HDD: http://www.ehow.com/how_6642534_install-slave-hard-drive.html

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home