Jump to content


Pianoexchanger

Sysprep fails with error code 0x80004005

Recommended Posts

HI,

 

Capture Image fails with error code 0x80004005.

I have created an image capture media with SCCM 2012 R2 SP1.

I want to capture a Windows 8.1 machine.

Capture works fine on another machine with another Windows 8.1 installation.

I have restored the installation, which fails, from a windows backup and than modified.

Capturing this installation before backup has also worked fine.

I think backup/restore is not the problem. I have done this always.

 

What I saw, LAN in sysprep state (before reboot) switches to "Limited"...

 

Smstslog is from %appdata%/local/temp.

 

Someone to help?

Thanks.

smstslog_WS1516.log

Share this post


Link to post
Share on other sites

from your log

 

<![LOG[sysprep'ing the machine failed, hr=80004005]LOG]!><time="14:07:47.142-120" date="08-10-2015" component="PrepareOS" context="" type="3" thread="2536" file="main.cpp:270">
<![LOG[De-Initialization successful]LOG]!><time="14:07:47.142-120" date="08-10-2015" component="PrepareOS" context="" type="0" thread="2536" file="prepareos.cpp:1147">
<![LOG[Exiting with error code 16389]LOG]!><time="14:07:47.142-120" date="08-10-2015" component="PrepareOS" context="" type="1" thread="2536" file="main.cpp:293">
<![LOG[Process completed with exit code 16389]LOG]!><time="14:07:47.142-120" date="08-10-2015" component="TSManager" context="" type="1" thread="2376" file="commandline.cpp:1124">

 

 

 

so you need to grab the sysprep logs in the panther dir and post them here

 

C:\Windows\System32\Sysprep\Panther

 

the following files will contain info pointing to the failure:-

  • setupact.log
  • setuperr.log

as regards

 

I have restored the installation, which fails, from a windows backup and than modified.

Capturing this installation before backup has also worked fine.

 

 

 

 

are you capturing on real hardware ? that's not a good idea, use Virtual Machines for creating images as I explain in the videos linked here.

Share this post


Link to post
Share on other sites

Hi,

 

sysprep runs now successful. :)

 

The Windows apps caused the problem.

I have found this link:

https://4sysops.com/archives/how-to-remove-windows-8-apps-before-you-run-sysprep/

Additional I have applied the command Get-AppxPackage | Remove-AppxPackage in Powershell (Admin).

It has worked for me.

 

Thanks for help.

Share this post


Link to post
Share on other sites

It sounds like an app was installed for a user but wasn’t provisioned in the image (for example if you update an app via the Windows Store, a newer version becomes installed for that user than the provisioned version). See Sysprep fails after removing or updating Windows built-in Windows Store apps at Microsoft Support.

 

Brandon
Windows Outreach Team- IT Pro
Windows for IT Pros on TechNet

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.