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

Information Technology Zone

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

32 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

 
At June 18, 2013 at 5:07 AM , Anonymous Anonymous said...

I am confused at the end, should i add skiprearm=1 or delete from Unattend.xml?
My Unattend.xml file doesn't have line skiprearm=1.
what to do, help pls.

 
At June 19, 2013 at 11:23 AM , Blogger Mick Pletcher said...

It should be there in the unattend.xml file. I would add it in

 
At July 9, 2013 at 6:17 PM , Anonymous Anonymous said...

thanks, works for me.

 
At July 19, 2013 at 4:55 PM , Anonymous Anonymous said...

You are a genious. THANKS!!!!

 
At August 30, 2013 at 2:46 PM , Anonymous B Harris said...

Thanks your solution worked like a charm

 
At September 19, 2013 at 9:21 AM , Blogger David Udegbue said...

You are a life saver, please take ALL the credits because you totally deserve it. Save me almost 4-5hours re-image task.Thanks.
David U- Great Britain.

 
At October 21, 2013 at 10:33 AM , Anonymous Anonymous said...

Found this 2 years later in Oct. 2013.......THANKS !

 
At October 27, 2013 at 9:48 PM , Anonymous Anonymous said...

Thanks work for me. You are the best.

 
At November 13, 2013 at 7:23 PM , Anonymous Anonymous said...

How about if it's a virtual machine? How can I slave its hard disk? Thanks!

 
At November 22, 2013 at 1:20 PM , Anonymous Anonymous said...

Has anyone told you they love you today? Well I love you.

 
At January 17, 2014 at 1:39 AM , Blogger Daniel Malan said...

Hey there, ok everything makes sense to me but I don't have the unnattend.xml file at all. In my sysprep folder I have the sysprep.exe file, en-US folder (which has sysprep.exe.mui) and then the Panther folder which has diaper.xml, diagnosis.xml, setupact.log, and setuperr.log as well as the IE folder with contents of the same name. I have done a sysprep before and it has always worked. When I did it this time to a rebuilt machine (Asus 1201N with Win 7 HP 32 bit) sysprep encountered a fatal error on the first reboot after installing drivers, etc. Now I know it would normally do this after the third reboot (I have read online and tested it myself) must I just scrap this install and reinstall the OS?

 
At January 20, 2014 at 9:53 PM , Blogger Mick Pletcher said...

It sounds like it may just need to be reinstalled

 
At January 20, 2014 at 9:55 PM , Blogger Mick Pletcher said...

I cannot think of anyway to slave a VM. I would take this info and maybe ask in a microsoft forum. I don't use VMs a whole lot.

 
At January 23, 2014 at 5:25 AM , Anonymous Anonymous said...

You are great!
Thanks a lot!!! GrĂ cies

Pep

 
At August 22, 2014 at 10:31 AM , Anonymous Anonymous said...

You can "slave" the disk of a VM simply by taking the VM offline and mounting the VHD in the host OS.

For non-virtual machines you don't even need to slave a disk, simply by booting to WindowsPE you can run notepad and edit the file from there.

You can also just take ownership over the file and just start notepad with elevated permissions.

 
At December 4, 2014 at 9:18 AM , Anonymous Anonymous said...

For those talking about not having an "Unattend.xml" file, I didn't have one either and just followed the rest of the steps and it worked just fine. Thanks a bunch for the steps!

 

Post a Comment

Subscribe to Post Comments [Atom]

<< Home