Open a ticket
Chat with us
BLOG Published on 2017/04/22 by Asitha De Silva in Tech-Tips

SCCM Image capture failing in Windows 10 1607 Reference Machine

Issue summery

I have recently face an issue when Capturing image from a Windows 10 1607 Reference machine for Configuration Manager Operating system deployment. It’s falling at the Sysprep stage right after running the Capture Media from the Reference machine with the error code 0x80004005



Cause

This is falling because Sysprep cannot clean the new windows built in apps, such as 3dbuilder, Zunemusic, Windowsalarms when preparing the image.You can check this by reading the following log files of sysprep  

C:\Windows\System32\Sysprep\Panther
Setupact.log
Setuperr.log

When you search this in the internet most people refer to remove these built in applications using PowerShell command and then start the capture. There is even a Microsoft KB article released to address this issue.

https://support.microsoft.com/en-us/help/2769827/sysprep-fails-after-you-remove-or-update-windows-store-apps-that-include-built-in-windows-images

But it’s not that easy to remove the apps because number of apps keep increasing with each new build and some of these apps cannot removed using PowerShell commands.

Resolution

There is a simple workaround to overcome this issue. All these apps are installed in the user profile. And they are installing when you click the start menu. So what you have to do is remove all the user profiles even with the logged on user and without clicking the start menu, run the SCCM capture media.

Use the following steps accordingly

  1. Login to the reference machine using local administrator and Prepare the reference machine, install software’s apps and other configurations.
  2. Create another local user and login to the machine using it


  3.  Without clicking the start menu open the system properties


  4. Go to advanced system settings


  5. User profile settings


  6. Delete all user profiles, even the local administrator profile


  7. Log off and login using the local administrator account.

  8. Without pressing the start menu Run the SCCM Capture image media and it will successfully create the image.



Hope this post is useful

Cheers

Asitha De Silva

Asitha De Silva

Consultant Cloud Solutions

Expert in architecting and implementing cloud-based infrastructure solutions.

Newsletter

To keep up with the news and updates related to our products, make sure to subscribe to our newsletter!

Copyright © 2024 Terminalworks. All Rights Reserved