Sysprep Capture of Windows 10 fails
Since November 2015, the ISO of Windows 10 has included more “modern” applications in its default build. This has caused some problems when trying to capture an image using SYSPREP. Some of the applications are 3rd party such as Candy Crush, and Twitter, but others are Microsoft applications. The example used below occurred when using a Windows 10 x64 Enterprise edition 1511.2 ISO. I’ve also encountered the same problem on x86 versions and education builds of Windows 10.
The general error that you’ll see on the screen is:
Expected Image state is IMAGE_STATE_GENERALIZE_RESEAL_TO_OOBE, actual image state is IMAGE_STATE_COMPLETE, sysprep did not succeed.
It will give you the path for the sysprep logs which tell you where the problem lies.
If you look near the bottom of the logs you’ll see that there are some error messages that mention a certain application. In this example it is Microsoft.CommsPhone.
At this point, if you are trying to capture from a physical machine, you will need to start the entire build from scratch. If you are capturing from a VM, and remembered to create a snapshot/checkpoint before starting the capture process, you can revert to that image, and remove the offending application.
Log in as an admin and open a PowerShell console as administrator. Instead of typing in the entire name for the app you can use * as a wildcard.
Check that there aren’t multiple apps that would be detected with your wildcard:
You should just see details for a single app as shown below
To remove the app run the following powershell command:
Finally, check that it’s gone by running the first line again:
This time no results should be shown.
At this point you can run the capture again and hopefully it will go through. Be prepared as it might happen again but with a different application. Run through the above procedure until you can capture the image successfully!
For more information on how you can prevent this error, I recommend reading the following blog: https://blogs.technet.microsoft.com/mniehaus/2018/04/17/cleaning-up-apps-to-keep-windows-10-sysprep-happy/
(Last updated on August 2, 2018)
[Guest blog] Specops OS Deploy – Windows 10 notes
If you are a Specops Deploy customer and looking to deploy applications to Windows 10 computers in your environment. I have good News! Windows 10 works great in Specops OS Deploy 6.0! I’m now on my second Windows 10 Education release from Microsoft, and we’re able to deploy as needed. Few Notes: I created a…Read More
Customize the Windows 10 start menu
If you are ready to install Windows 10, stop for a minute to find out how you customize the Windows 10 start menu. You will save yourself time and avoid a major hassle for your end users. We love Windows 10, but not the start menu, which still contains many icons that most users do…Read More
Creating a WinPE boot image with Windows 10 Drivers
Wouldn’t it be nice if you didn’t have to wait for your Windows 7, 8 and/or 8.1 NIC/Storage drivers to be imported into my WinPE Boot image every time you added a NIC driver? The Windows PE boot image in Specops Deploy 6 (the latest version) uses the Windows 10 x86/x64 Kernel, and as such,…Read More