Enjoy Sharing

Another Task Sequence Error 0x80070002 Problem

In case you didn’t know yet, this error seem to appear quite a bit when you’re having trouble with your task sequence. This is because it isn’t exactly a specific error but more general and I’ve written a couple of blog post on this error too. Though the error message is the same, many times the cause of the problem may be different. Always remember to check the SMSTS.log whenever possible to find out more details about the error. This time round, I’ve got this:-

 

Command line for extension .exe is "%1" %*    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
Set command line: "OSDApplyOS.exe" /image:MYS00006,2 /target:D:    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
Not a data image    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
ApplyOSRetry:     ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
TSLaunchMode: CD    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
OSDUseAlreadyDeployedImage: FALSE    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
The volume D:\ exists and is a local hard drive.    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
The volume D:\ is using a valid file system.    ApplyOperatingSystem    21/7/2012 2:03:36 AM    1244 (0x04DC)
Verifying boot volume is NTFS.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Succeeded loading resource DLL ‘X:\sms\bin\x64\1033\TSRES.DLL’    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
The machine does not have a local client cache.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
DownloadOnDemand flag is true. Attempting to download content locally for Package MYS00006..    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Package Flags: 0x1000000    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
GetDirectoryListing() entered    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Initializing HTTP transport.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
   Setting URL =
http://MY-SCCM01.mcm.local/SMS_DP_SMSPKG$/MYS00006.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
   Address=
http://MY-SCCM01.mcm.local, Scheme=http, Object=/SMS_DP_SMSPKG$/MYS00006, Port=80.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
   Setting Authenticator.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Set authenticator in transport    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
WinHttp credentials set    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
CLibSMSMessageWinHttpTransport::Send: URL: MY-SCCM01.mcm.local:80  PROPFIND /SMS_DP_SMSPKG$/MYS00006    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Error. Received 0x80072ee7 from WinHttpSendRequest.    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
unknown host (gethostbyname failed)    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
hr, HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,8738)    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
sending with winhttp failed; 80072ee7    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
oHttpTransport.Send((char*)S_DAVQUERY, (sizeof(S_DAVQUERY)/sizeof(S_DAVQUERY[0]))-sizeof(char), pReply, nReplySize), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,829)    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
SendResourceRequest() failed with 0x80072ee7    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
SendResourceRequest(), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,572)    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
oDavRequest.GetDirectoryListing(setDirs, setFiles), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,2411)    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
Retrying download…    ApplyOperatingSystem    21/7/2012 2:03:43 AM    1244 (0x04DC)
GetDirectoryListing() entered    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
Initializing HTTP transport.    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
   Setting URL =
http://MY-SCCM01.mcm.local/SMS_DP_SMSPKG$/MYS00006.    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
   Address=
http://MY-SCCM01.mcm.local, Scheme=http, Object=/SMS_DP_SMSPKG$/MYS00006, Port=80.    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
   Setting Authenticator.    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
Set authenticator in transport    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
WinHttp credentials set    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
CLibSMSMessageWinHttpTransport::Send: URL: MY-SCCM01.mcm.local:80  PROPFIND /SMS_DP_SMSPKG$/MYS00006    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
Error. Received 0x80072ee7 from WinHttpSendRequest.    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
unknown host (gethostbyname failed)    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
hr, HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\osdmessaging\libsmsmessaging.cpp,8738)    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
sending with winhttp failed; 80072ee7    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
oHttpTransport.Send((char*)S_DAVQUERY, (sizeof(S_DAVQUERY)/sizeof(S_DAVQUERY[0]))-sizeof(char), pReply, nReplySize), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,829)    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
SendResourceRequest() failed with 0x80072ee7    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
SendResourceRequest(), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\downloadcontent.cpp,572)    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
oDavRequest.GetDirectoryListing(setDirs, setFiles), HRESULT=80072ee7 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,2411)    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
Retrying download…    ApplyOperatingSystem    21/7/2012 2:03:46 AM    1244 (0x04DC)
Tried all the available http based locations. SMB based locations will be attempted now.    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
!saSMBContentSources.empty(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,2849)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
DownloadContentAndVerifyHash(pszPackageID, L"SMSPackage", saHttpContentSources, saSMBContentSources, saMulticastContentSources, sDestination, dwFlags, L"", 0, dwPackageFlags, pszUserName, pszUserPassword ), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,3007)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
DownloadContentLocally(pszSource, sSourceDirectory, dwFlags, hUserToken, pszUserName, pszUserPassword), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,3217)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
ResolveSource(pszSource, sSourceDirectory, dwFlags, 0, 0, 0), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,3122)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
TS::Utility::ResolveSource( this->packageID, this->packagePath, TS::Utility::ResolveSourceFlags::PersistContents ), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1368)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
resolvePkgSource(), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1411)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
Apply(), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1614)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
Installation of image 2 in package MYS00006 failed to complete..
The system cannot find the file specified. (Error: 80070002; Source: Windows)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
installer.install(), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1689)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
Entering ReleaseSource() for F:\_SMSTaskSequence\Packages\MYS00006    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
The user tries to release a source directory F:\_SMSTaskSequence\Packages\MYS00006 that is either already released or we have not connected to it    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)
InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia ), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\applyos.cpp,470)    ApplyOperatingSystem    21/7/2012 2:03:49 AM    1244 (0x04DC)

 

I guess you may already be asking already, so what’s the problem. This time around, the problem looked like it couldn’t access the OS image file therefore the error “The system cannot find the file specified”. This led me to investigate why the client computer couldn’t get access to the OS image. Checking on the DHCP I found that when the client boots up you’ll see an IP address being leased to a computer whose name is similar to minint-<random character>. So why isn’t the client getting an IP. My problem I was having was drivers for my network adapter. It was using a wrong driver which cannot be used for the version of Windows PE I’m currently using. As soon as I changed the drivers to Windows 7 drivers from Windows XP drivers, the task sequence proceeded like a charm. Now, to move on to other things…..

 

 

 

Enjoy!!!

Advertisements

One response

  1. supreet

    Oh my god…I was struck for the same issue for whole day, that too on a production server…your solution gave me a big big smile on my face..thank you a ton

    February 18, 2014 at 9:21 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s