Hi all, long time reader but this is the first time i couldn't fix a problem I'm having... As the title says when doing a Build and Capture Task to a machine it gets close to the end of Applying operating system and then shows up with the error code 80070002.
I have also tried changing the credentials for the Network Access Account and had no luck (Even when testing with domain admin account)
Thanks
LOG with where it Fails.
Found volume C:\ ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Windows target partition is 0-2, driver letter is C:\ ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Verifying boot volume is NTFS. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL' ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
The machine does not have a local client cache. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
ResolveSource flags: 0x00000001 ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
SMSTSPersistContent: . The content for package PCW00008 will be persisted ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
DownloadOnDemand flag is true. Attempting to download content locally for Package PCW00008.. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Package Flags: 0x1000000 ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
GetDirectoryListing() entered ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Initializing HTTP transport. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Setting URL = http://CONFIGSVR.presentation.local, Scheme=http, Object=/SMS_DP_SMSPKG$/PCW00008, Port=80. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Setting Authenticator. ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
Set authenticator in transport ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
WinHttp credentials set ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
CLibSMSMessageWinHttpTransport::Send: URL: CONFIGSVR.presentation.local:80 PROPFIND /SMS_DP_SMSPKG$/PCW00008 ApplyOperatingSystem 14/05/2013 11:22:30 AM 1464 (0x05B8)
401 - Authentication failure on request with anonymous access, retrying with context credentials. ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
Using thread token for request ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
401 - Authentication failure on request with context credentials, retrying with supplied credentials. ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
Request was succesful. ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
DAV response string is:
<?xml version="1.0" encoding="utf-8" ?><D:multistatus xmlns:D="DAV:"><D:response><D:href>http://CONFIGSVR.presentation.local/SMS_DP_SMSPKG$/sccm?/PCW00008/</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:getcontenttype/><D:supportedlock/><D:getetag/><D:creationdate/><D:iscollection>1</D:iscollection><D:resourcetype><D:collection/></D:resourcetype><D:ishidden>0</D:ishidden><D:displayname>http://CONFIGSVR.presentation.local/SMS_DP_SMSPKG$/sccm?/PCW00008/</D:displayname><D:getlastmodified></D:getlastmodified><D:getcontentlanguage/><D:getcontentlength>0</D:getcontentlength></D:prop></D:propstat></D:response><D:response><D:href>http://CONFIGSVR.presentation.local/SMS_DP_SMSPKG$/PCW00008/sccm?/boot.wim</D:href><D:propstat><D:status>HTTP/1.1 200 OK</D:status><D:prop><D:getcontenttype/><D:lockdiscovery/><D:supportedlock/><D:getetag/><D:getcontentlanguage/><D:iscollection>0</D:iscollection><D:creationdate/><D:resourcetype/><D:ishidden>0</D:ishidden><D:displayname>http://CONFIGSVR.presentation.local/SMS_DP_SMSPKG$/PCW00008/sccm?/boot.wim</D:displayname><D:getlastmodified>Thu, 26 Jul 2012 08:22:45 GMT</D:getlastmodified><D:getcontentlength>202176657</D:getcontentlength></D:prop></D:propstat></D:response></D:multistatus> ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
List of files to be downloaded ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
File: http://CONFIGSVR.presentation.local:80/SMS_DP_SMSPKG$/PCW00008/sccm?/boot.wim ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
GetDirectoryListing() successfully completed ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
Succeeded loading resource DLL 'X:\sms\bin\x64\1033\TSRES.DLL' ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
401 - Authentication failure on request with anonymous access, retrying with context credentials. ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
401 - Authentication failure on request with context credentials, retrying with supplied credentials. ApplyOperatingSystem 14/05/2013 11:22:31 AM 1464 (0x05B8)
Downloaded file from http://CONFIGSVR.presentation.local:80/SMS_DP_SMSPKG$/PCW00008/sccm?/boot.wim to C:\_SMSTaskSequence\Packages\PCW00008\boot.wim ApplyOperatingSystem 14/05/2013 11:22:49 AM 1464 (0x05B8)
Download done setting progress bar to 100 ApplyOperatingSystem 14/05/2013 11:22:49 AM 1464 (0x05B8)
VerifyContentHash: Hash algorithm is 32780 ApplyOperatingSystem 14/05/2013 11:22:49 AM 1464 (0x05B8)
Failed to open Software\Microsoft\Sms\Mobile Client\Software Distribution registry key. The client should not get checked for RWH OpLock Type ApplyOperatingSystem 14/05/2013 11:22:49 AM 1464 (0x05B8)
Content successfully downloaded at C:\_SMSTaskSequence\Packages\PCW00008 ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Opening image file C:\_SMSTaskSequence\Packages\PCW00008\boot.wim ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Image file PCW00008 version "" will be applied ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Starting to apply image 1 from boot.wim to C:\ ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Wiping C:\ ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Set "C:\_SMSTaskSequence" to not be wiped ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Set "%OSDStateStorePath%" to not be wiped ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Set "%_SMSTSClientCache%" to not be wiped ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Set "%_SMSTSNewClientCachePathToCleanup%" to not be wiped ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Skipping C:\_SMSTaskSequence for wipe ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Calculating expected free space. ApplyOperatingSystem 14/05/2013 11:22:52 AM 1500 (0x05DC)
Reporting deletion progress. ApplyOperatingSystem 14/05/2013 11:22:52 AM 1500 (0x05DC)
Successfully wiped C:\ ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Applying image to C:\ ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Applying image 1 to volume C: ApplyOperatingSystem 14/05/2013 11:22:52 AM 1464 (0x05B8)
Executing command line: X:\WINDOWS\system32\cmd.exe /k TSBootShell 14/05/2013 11:22:56 AM 816 (0x0330)
The command completed successfully. TSBootShell 14/05/2013 11:22:56 AM 816 (0x0330)
Successfully launched command shell. TSBootShell 14/05/2013 11:22:56 AM 816 (0x0330)
Successfully applied image to C:\ ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
OfflineRegistry::Init("C:\WINDOWS") ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
Loading offline registry hive "C:\WINDOWS\system32\config\software" into HKLM\OfflineRegistry1 ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
Loading offline registry hive "C:\WINDOWS\system32\config\system" into HKLM\OfflineRegistry2 ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
CurrentControlSet is mapped to ControlSet001 ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
System root for target OS is C:\WINDOWS, System drive is C: ApplyOperatingSystem 14/05/2013 11:23:04 AM 1464 (0x05B8)
OS Version is 6.2 ApplyOperatingSystem 14/05/2013 11:23:05 AM 1464 (0x05B8)
Successfully loaded a source BCD boot system ApplyOperatingSystem 14/05/2013 11:23:05 AM 1464 (0x05B8)
SetupNewOS: Loaded source boot system from target volume "C:\" ApplyOperatingSystem 14/05/2013 11:23:05 AM 1464 (0x05B8)
BootLoader::restore: C:\, S:\ ApplyOperatingSystem 14/05/2013 11:23:11 AM 1464 (0x05B8)
Saving bcd store to C:\_SMSTaskSequence\ApplyBootSystem\boot\BCD ApplyOperatingSystem 14/05/2013 11:23:11 AM 1464 (0x05B8)
Installing BOOTMGR bootsector ApplyOperatingSystem 14/05/2013 11:23:14 AM 1464 (0x05B8)
Command line for extension .exe is "%1" %* ApplyOperatingSystem 14/05/2013 11:23:14 AM 1464 (0x05B8)
Set command line: "bootsect.exe" /NT60 SYS /MBR ApplyOperatingSystem 14/05/2013 11:23:14 AM 1464 (0x05B8)
Executing command line: "bootsect.exe" /NT60 SYS /MBR ApplyOperatingSystem 14/05/2013 11:23:14 AM 1464 (0x05B8)
Process completed with exit code 0 ApplyOperatingSystem 14/05/2013 11:23:16 AM 1464 (0x05B8)
Command line for extension .exe is "%1" %* ApplyOperatingSystem 14/05/2013 11:23:16 AM 1464 (0x05B8)
Set command line: "bcdboot.exe" C:\WINDOWS /s S:\ /l en-US ApplyOperatingSystem 14/05/2013 11:23:16 AM 1464 (0x05B8)
Executing command line: "bcdboot.exe" C:\WINDOWS /s S:\ /l en-US ApplyOperatingSystem 14/05/2013 11:23:16 AM 1464 (0x05B8)
Process completed with exit code 0 ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Unloading offline SOFTWARE registry hive ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Unloading offline SYSTEM registry hive ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Updating MountedDevices key in target system registry ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
OfflineRegistry::Init("C:\WINDOWS") ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Loading offline registry hive "C:\WINDOWS\system32\config\software" into HKLM\OfflineRegistry1 ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Loading offline registry hive "C:\WINDOWS\system32\config\system" into HKLM\OfflineRegistry2 ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
CurrentControlSet is mapped to ControlSet001 ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
currentVersionKey.GetString( L"PathName", sNewOsVolume ), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1171) ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Unloading offline SOFTWARE registry hive ApplyOperatingSystem 14/05/2013 11:23:17 AM 1464 (0x05B8)
Unloading offline SYSTEM registry hive ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Finished updating MountedDevices in target system registry (0x80070002) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
this->UpdateMountedDevices (sTargetSystemRoot, sSystemRootAfterBoot), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1100) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
SetupNewOs(&pBootSystem), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1543) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Configure(), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1721) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Installation of image 1 in package PCW00008 failed to complete..
The system cannot find the file specified. (Error: 80070002; Source: Windows) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
installer.install(), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\installimage.cpp,1787) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Closing image file C:\_SMSTaskSequence\Packages\PCW00008\boot.wim ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\PCW00008 ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
reference count 1 for the source C:\_SMSTaskSequence\Packages\PCW00008 before releasing ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Released the resolved source C:\_SMSTaskSequence\Packages\PCW00008 ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia, g_RunFromNet ), HRESULT=80070002 (e:\nts_sccm_release\sms\client\osdeployment\applyos\applyos.cpp,509) ApplyOperatingSystem 14/05/2013 11:23:18 AM 1464 (0x05B8)
Process completed with exit code 2147942402 TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
!--------------------------------------------------------------------------------------------! TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Failed to run the action: Apply Operating System.
The system cannot find the file specified. (Error: 80070002; Source: Windows) TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
MP server http://CONFIGSVR.presentation.local. Ports 80,443. CRL=false. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting authenticator TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Set authenticator in transport TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Sending StatusMessage TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting message signatures. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting the authenticator. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
CLibSMSMessageWinHttpTransport::Send: URL: CONFIGSVR.presentation.local:80 CCM_POST /ccm_system/request TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Request was succesful. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Set a global environment variable _SMSTSLastActionRetCode=-2147024894 TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Set a global environment variable _SMSTSLastActionSucceeded=false TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Clear local default environment TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Let the parent group (Build the Reference Machine) decides whether to continue execution TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
The execution of the group (Build the Reference Machine) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Failed to run the last action: Apply Operating System. Execution of task sequence failed.
The system cannot find the file specified. (Error: 80070002; Source: Windows) TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
MP server http://CONFIGSVR.presentation.local. Ports 80,443. CRL=false. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting authenticator TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Set authenticator in transport TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Sending StatusMessage TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting message signatures. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Setting the authenticator. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
CLibSMSMessageWinHttpTransport::Send: URL: CONFIGSVR.presentation.local:80 CCM_POST /ccm_system/request TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Request was succesful. TSManager 14/05/2013 11:23:18 AM 1096 (0x0448)
Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,866) TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Task Sequence Engine failed! Code: enExecutionFail TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
**************************************************************************** TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Task sequence execution failed with error code 80004005 TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Cleaning Up. TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Removing Authenticator TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
shKey.DeleteValue( c_szRegValue_SecurityToken ), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\ccmutillib\ccmutillib.cpp,1652) TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Cleaning up task sequence folder TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing. TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
hr, HRESULT=80070091 (e:\nts_sccm_release\sms\framework\core\ccmcore\ccmfile.cpp,1218) TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
Failed to delete directory 'C:\_SMSTaskSequence' TSManager 14/05/2013 11:38:20 AM 1096 (0x0448)
(dwRet = ::SetNamedSecurityInfoW ((WCHAR*) pszObjectName, objectType, OWNER_SECURITY_INFORMATION, pOwnerSID, NULL, NULL, NULL)) == ERROR_SUCCESS, HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6090) TSManager 14/05/2013 11:38:20