When deploying a WIM file that contains both a Windows OS image and a Data image in the WIM file, the deployment may fail when using an SCCM 2007 OSD Task Sequence with the following logged in the SMSTS.LOG file:
Opening image file C:\_SMSTaskSequence\Packages\<WIM_Image_Package_ID>\<Image>.wim ApplyOperatingSystem
Image file <WIM_Image_Package_ID> version "" will be applied ApplyOperatingSystem
Image does not contain OS architecture information. Unable to verify that the OS will be compatable with the target machine. ApplyOperatingSystem
Starting to apply image <Image_Index> from <Image>.wim to C:\ ApplyOperatingSystem
Wiping C:\ ApplyOperatingSystem
Set "C:\_SMSTaskSequence" to not be wiped ApplyOperatingSystem
Set "%OSDStateStorePath%" to not be wiped ApplyOperatingSystem
Set "%_SMSTSClientCache%" to not be wiped ApplyOperatingSystem
Set "%_SMSTSNewClientCachePathToCleanup%" to not be wiped ApplyOperatingSystem
Skipping C:\_SMSTaskSequence for wipe ApplyOperatingSystem
Calculating expected free space. ApplyOperatingSystem
Reporting deletion progress. ApplyOperatingSystem
Successfully wiped C:\ ApplyOperatingSystem
Applying image to C:\ ApplyOperatingSystem
Applying image <Image_Index> to volume C: ApplyOperatingSystem
Successfully applied image to C:\ ApplyOperatingSystem
pOs != NULL, HRESULT=80070490 (e:\nts_sms_fre\sms\framework\osdcore\offlineos.cpp,92) ApplyOperatingSystem
Unable to find a Windows system root at C:\.
Element not found. (Error: 80070490; Source: Windows) ApplyOperatingSystem
OSD::Utility::OfflineOS::CreateInstance( this->targetVolume, true, rpNewOs), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,395) ApplyOperatingSystem
this->getTargetOs(pNewOs), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,892) ApplyOperatingSystem
Failed to find the system root for the applied OS.
Element not found. (Error: 80070490; Source: Windows) ApplyOperatingSystem
SetupNewOs(), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1434) ApplyOperatingSystem
Configure(), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1465) ApplyOperatingSystem
Installation of image 2 in package <WIM_Image_Package_ID> failed to complete..
Element not found. (Error: 80070490; Source: Windows) ApplyOperatingSystem
installer.install(), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\installimage.cpp,1527) ApplyOperatingSystem
Closing image file C:\_SMSTaskSequence\Packages\<WIM_Image_Package_ID>\<Image>.wim ApplyOperatingSystem
Entering ReleaseSource() for C:\_SMSTaskSequence\Packages\<WIM_Image_Package_ID> ApplyOperatingSystem
reference count 1 for the source C:\_SMSTaskSequence\Packages\<WIM_Image_Package_ID> before releasing ApplyOperatingSystem
Released the resolved source C:\_SMSTaskSequence\Packages\<WIM_Image_Package_ID> ApplyOperatingSystem
InstallImage( g_InstallPackageID, g_ImageIndex, targetVolume, ImageType_OS, g_ConfigPackageID, g_ConfigFileName, bOEMMedia ), HRESULT=80070490 (e:\nts_sms_fre\sms\client\osdeployment\applyos\applyos.cpp,373) ApplyOperatingSystem
Process completed with exit code 2147943568 TSManager
!--------------------------------------------------------------------------------------------! TSManager
Failed to run the action: Apply Operating System.
Element not found. (Error: 80070490; Source: Windows) TSManager
The execution of the group (Install Operating System) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows) TSManager
Failed to run the last action: Apply Operating System. Execution of task sequence failed.
Element not found. (Error: 80070490; Source: Windows) TSManager
Cause
The problem can occur if the incorrect image is trying to be applied during the "Apply Operating System Image" task. At the "Apply Operating System Image" task, an image that contains a Windows OS needs to be selected. If a data image is selected instead, the errors will occur. To apply data images, use the "Apply Data Image" task.
The problem usually occurs because of an error in selection when setting up the Task Sequence. If the WIM file selected at the "Apply Operating System Image" task contains multiple images, including at least one Windows OS image and at least one Data image, the image index with the Windows OS needs to be selected. If the image index with the Data image is selected instead, then the error will occur.
Note that the GUI for the "Apply Operating System Image" task does not check if the appropriate image has been selected, nor does it indicate which image index is the one that contains the Windows OS. However steps can be taken to make this determination.
Resolution
1. In the SCCM 2007 Admin Console, under the "Computer Management" --> "Operating System Deployment"--> "Operating System Images"node, right click on the Windows 7 image being deployed and choose "Properties".
2. Click on the "Images" tab.
3. Under the option "Select image you want to view:", switch between the different images (i.e., "1-1" or "2-2") that are contained in the WIM file. Determine which image, i.e. 1-1 or 2-2, contains the Windows installation. The image that contains the Windows installation will have information next to the fields "OS version", "Architecture", "HAL Type", and "Description". The non-Windows data image will not have anything next to these fields.
4. Click on the "OK button.
5. In the SCCM 2007 Admin Console, under the "Computer Management" --> "Operating System Deployment"--> "Task Sequences"node, right click the affected Task Sequence and choose “Edit”.
6. Select the "Apply Operating System" task.
7. Under the "Apply operating system from a captured image" option, make sure that the "Image:" drop down menu is set to the Windows installation image as determined in Step 3 (i.e., "1-1" or "2-2").
8. Click on the "OK" button to save the changes to the Task Sequence.
Frank Rojas | Support Escalation Engineer