task sequence execution engine failed executing the action (Setup windows and ConfigMgr)...

Description

You get the following error when you try to build a reference machine (or deploy an Operating System Image) with SCCM OSD:

The task sequence execution engine failed executing the action (Setup windows and ConfigMgr) in the group (Build the Reference Machine) with the error code
2147500037
Action output: ce\unattend.xml
Successfully initialized driver information
Command line for extension .EXE is "%1" %*
Set command line: "D:\_SMSTaskSequence\Packages\SMS00099\SOURCES\SETUP.EXE" "/unattend:D:\_SMSTaskSequence\unattend.xml" /noreboot
Executing commandline: "D:\_SMSTaskSequence\Packages\SMS00099\SOURCES\SETUP.EXE" "/unattend:D:\_SMSTaskSequence\unattend.xml" /noreboot
Process completed with exit code 31
Windows Setup completed with exit code 31
Entering ReleaseSource() for D:\_SMSTaskSequence\Packages\SMS00099
reference count 1 for the source D:\_SMSTaskSequence\Packages\SMS00099 before releasing
Delete source directory D:\_SMSTaskSequence\Packages\SMS00099
Released the resolved source D:\_SMSTaskSequence\Packages\SMS00099
exitCode == 0, HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\setupwindows\setupwindows.cpp,440)
setup.run(), HRESULT=80004005 (e:\nts_sms_fre\sms\client\osdeployment\setupwindows\setupwindows.cpp,1707)
Exiting with code 0x80004005
Windows setup failed, code 31. The operating system reported error 2147500037: Unspecified error
The task sequence execution engine failed execution of a task sequence. The operating system reported error 2147500037: Unspecified error


Solution

This is usually happens due to invalid product key provided in the task sequence or the unattend xml file, either you're using a product key that mismatch the edition you're trying to install or you're using the Enterprise Edition.

Windows Vista Enterprise and Windows 7 Enterprise Editions (or at the very least, some editions) will fail if you provide a product key in the unattend xml file. You should try to leave the product key section empty.

You can activate Windows at the end of the task sequence by running the command:
cscript %windir%\system32\slmgr.vbs -ato

And you can also provide a product key before activation with the command:
cscript %windir%\system32\slmgr.vbs -ipk YOUR_PRODUCT_KEY

Affected software:

System Center Configuration Manager (SCCM) 2007 R2
System Center Configuration Manager (SCCM) 2007 R3






Add new comment
Name:
Anti-Bots verification code (just write 1234):