BSOD when capturing image with SCCM 2012 R2 SP1

I was capturing a new Windows 10 TH2 (1511) image with SCCM 2012 R2 SP1 CU2 when suddenly the capturing process stops and ends with a Blue Screen of Death: “SYSTEM_THREAD_EXCEPTION_NOT_HANDLED”.

Current environment:

SCCM 2012 R2 SP1 CU2 Primary Site
Local Distribution Point
Windows Server 2012 R2 OS
Based on Hyper-V 2008 R2 and 2012 R2.
Windows 10 Template on Hyper-V Server 2008 R2 Cluster with VM Version 1.

Firstly I thought that the boot image was corrupt or not working, so I tried to recreate the image using the following post. Unfortunately, the BSOD comes up with both boot images.

Solution:

Use a Generation 2 VM instead of a Generation 1 VM.

Windows 10 – SCCM 2012 R2 SP1 fails with error 0x80070032

I was deploying Windows 10 with SCCM 2012 R2 SP1 and the task sequence failed after “Installing device drivers” with error code 0x80070032 (or 80070032). The “Auto Apply Drivers” task works fine, but doesn’t install a lot of drivers.

The smsts.log file:

Dism failed with return code 50 Failed to add driver to driver store. Code 0x80070032 Failed to provision driver. Code 0x80070032 Exiting with return code 0x80070032

Solution:

  • Make sure you’re using the latest MDT version, compatible with Windows 10.
  • Make sure you’re using at least ADK 10.
  • Check if your boot image has OS Version 10 or higher. If not, create a new boot image with MDT or ADK.