Support Tip: When deploying Windows 7, the Task Sequence fails to download the MDT tools and logs error 80070002

~ Winds Wu

ToolsHere’s an FYI on an issue we ran into recently that you might want to be aware of. When using Microsoft Deployment Toolkit (MDT) 2013 integrated with System Center 2012 R2 Configuration Manager (ConfigMgr R2) and deploying Windows 7, the Task Sequence may continuously fail to download the MDT tools during the post install/state restore phase.

You will also see the following in the smsts.log at the time:

WinHttpSendRequest (hRequest, pszAdditionalHeader != NULL ? pszAdditionalHeader : WINHTTP_NO_ADDITIONAL_HEADERS, (DWORD)-1, NULL, 0, 0, NULL), HRESULT=80072ee2 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,1193) InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
WinHttpSendRequest failed. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
SendWinHttpRequest failed. 80072ee2. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
SendWinHttpRequest (hSession, hConnect, hRequest, pszSourcePath, sWinHttpRangeHeader.c_str(), bUseSSL, ullContentLength, LastGoodCredentialsType), HRESULT=80072ee2 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,1406) InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
DownloadFileWithRanges() failed. 80072ee2. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
Error downloading file from http://ConfigMgrR2.SC.LOCAL:80/SMS_DP_SMSPKG$/RR200021/sccm?/Scripts/DeployWiz_Definition_ENU.xml to C:\_SMSTaskSequence\Packages\RR200021\Scripts/DeployWiz_Definition_ENU.xml InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
DownloadFiles() failed. 80072ee2. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
Download() failed. 80072ee2. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
DownloadContentAndVerifyHash() failed. 80070002. InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
Failed to resolve the source for SMS PKGID=RR200021, hr=0x80070002 InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
Install Software failed to run command line, hr=0x80070002 InstallSoftware 10/02/2014 05:15:53 2332 (0x091C)
Failed to run the action: Use Toolkit Package.
The system cannot find the file specified. (Error: 80070002; Source: Windows) TSManager 10/02/2014 05:15:53 1812 (0x0714)

Cause

When using MDT 2013 integrated with ConfigMgr R2 and deploying Windows 7, the Task Sequence will continuously fail to download the MDT tools during the post install/state restore phase *IF* the Set Variable for Drive Letter TS variable is configured to True. This does not occur if it is configured to False.

Workaround

To work around this issue, create the following two Task Sequence variables at the very top of the Task Sequence, immediately below "Execute Task Sequence"

SMSTSDownloadRetryCount = 5
SMSTSDownloadRetryDelay = 15

Winds Wu | Support Engineer | Microsoft GBS Management and Security Division

Get the latest System Center news on Facebook and Twitter:

clip_image001 clip_image002

System Center All Up: http://blogs.technet.com/b/systemcenter/
System Center – Configuration Manager Support Team blog: http://blogs.technet.com/configurationmgr/
System Center – Data Protection Manager Team blog: http://blogs.technet.com/dpm/
System Center – Orchestrator Support Team blog: http://blogs.technet.com/b/orchestrator/
System Center – Operations Manager Team blog: http://blogs.technet.com/momteam/
System Center – Service Manager Team blog: http://blogs.technet.com/b/servicemanager
System Center – Virtual Machine Manager Team blog: http://blogs.technet.com/scvmm

Windows Intune: http://blogs.technet.com/b/windowsintune/
WSUS Support Team blog: http://blogs.technet.com/sus/
The AD RMS blog: http://blogs.technet.com/b/rmssupp/

App-V Team blog: http://blogs.technet.com/appv/
MED-V Team blog: http://blogs.technet.com/medv/
Server App-V Team blog: http://blogs.technet.com/b/serverappv

The Forefront Endpoint Protection blog : http://blogs.technet.com/b/clientsecurity/
The Forefront Identity Manager blog : http://blogs.msdn.com/b/ms-identity-support/
The Forefront TMG blog: http://blogs.technet.com/b/isablog/
The Forefront UAG blog: http://blogs.technet.com/b/edgeaccessblog/