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
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.
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.
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
Create another local user and login to the machine using it
Without clicking the start menu open the system properties
Go to advanced system settings
User profile settings
Delete all user profiles, even the local administrator profile
Log off and login using the local administrator account.
Without pressing the start menu Run the SCCM Capture image media and it will successfully create the image.
Hope this post is useful
Cheers