- Remove From My Forums
-
Вопрос
-
Hello All.
We’re using SCCM 2012 R2 SP1. SCCM Client installation is getting failed again on a Windows 7 SP1 desktop.
ccmsetup.log are as below:
MSI: Setup failed due to unexpected circumstances. The error code is 80070002
File C:Windowsccmsetup{8971B736-FB0A-4D07-AE81-82D40BBCD630}client.msi installation failed. Error text: ExitCode: 1603
Action: CcmFixupServiceConfigInit.
ErrorMessages:Setup failed due to unexpected circumstances. The error code is 80070002
Client.msi.log are as below:
MSI (s) (84:10) [12:44:36:945]: Product: Configuration Manager Client — Installation operation failed.
MSI (s) (84:10) [12:44:36:946]: Windows Installer installed the product. Product Name: Configuration Manager Client. Product Version: 5.00.8239.1000. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation success or error status: 1603.
I’ve tried rebuilding the WMI repository (as described in the article http://blogs.catapultsystems.com/javery/archive/2009/07/01/sccm-client-installation-error-80041001), but again same error.
Please help and advise.
Many thanks in anticipation.
Regards,
Hasan Bin Hasib
-
Изменено
29 сентября 2015 г. 8:12
-
Изменено
Ответы
-
Rebuilding WMI is not a cure all and is not harmless like a reboot; i.e., it doesn’t make sense to blindly rebuild WMI every time you have an error.
Based on the log snippet above, the custom action CcmFixupServiceConfigInit is failing. I don’t have intimate knowledge of this custom action but based upon its name, it is attempting to manipulate some service in some way although the exact error is «Failed
to cache service configuration». Also, error code 2 = file not found.Putting all of this together leads me to believe that the system is locked down or the anti-virus product in use is preventing the action. You need to review the logs for your AV product as well as the event viewer to see if you can find any correlating
activity. ProcMon may also be helpful here in discovering what exactly is going on.
Jason | http://blog.configmgrftw.com | @jasonsandys
-
Предложено в качестве ответа
Kannan CS
30 сентября 2015 г. 9:02 -
Помечено в качестве ответа
Xin GuoMicrosoft contingent staff
8 октября 2015 г. 6:12
-
Предложено в качестве ответа
In this post, I will show you how to fix SCCM task sequence failed with error code 0x80070002. There are multiple solutions to fix the task sequence error 0x80070002.
The Task Sequence error code 0x80070002 is the most common error that you see during operating system deployment.
Whenever a task sequence fails, it fails with an error code. This error code is critical in determining why the task sequence failed and has solutions associated with it.

The SMSTS.log file plays an important role in troubleshooting the task sequence failures. For example, when a SCCM task sequence fails with error code 0x80070002, the smsts.log file contains the reasons why the task sequence failed along with additional errors.
The location of SMSTS.log file changes during the SCCM OSD. So ensure you know the location of smsts.log file during OSD. You can open the SMSTS.log file using CMTrace log file viewer or ConfigMgr log file viewer tools.
You encounter task sequence error code 0x80070002 during “Apply Operating System” step of SCCM Task Sequence. When a task sequence fails with error code 0x8007002, you see the following details.
ERROR: Task Sequence Failed with the error code 0x80070002. For more information, contact your system administrator or helpdesk operator.
The error code 0x80070002 means the system cannot find the file specified. It’s regarded as a network error during the OSD where the necessary files are not accessible by the computer where the operating system is being deployed. It can also mean that the distribution point cannot be reached by a client computer.

To fix the error code 0x80070002, you must define the network access account in SCCM. The Network Access account is used only for accessing the content and not for running the task sequence.
The network access account should have the minimum appropriate permissions on operating system deployment content it needs to access. This account is important because the computer receiving the operating system does not have a security context it can use to access content on the network.
To configure the Network Access Account in SCCM console :-
- Launch the SCCM console.
- Click on Administration > Overview > Site Configuration > Sites.
- On the top ribbon click Configure Site Components and select Software Distribution.

Click on the tab Network Access Account, choose Specify the account that accesses network locations (by default the option is set to Use the computer account of Configuration Manager client). Click on the orange icon and add the user account that enough permissions to access the content which is required while deploying Operating System.

Prajwal Desai is a Microsoft MVP in Enterprise Mobility. He writes articles on SCCM, Intune, Configuration Manager, Microsoft Intune, Azure, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
В этой статье мы расскажем, как легко и эффективно траблшутить установку Windows, выполняемую через System Center Configuration Manager (SCCM) или с помощью MDT.
Итак, мы рассматриваем ситуацию, когда выполняется task sequence, запущенный с SCCM сервера или из MDT, интегрированной с WDS. Существенной разницы нет, ведь exit коды фактически у них одинаковые для стандартных типовых шагов. также соверщенно не важно, загружали ли вы клиента с PXE или через Boot media (загрузочную срезу на USB или DVD), главное, чтобы вы попали в среду Windows PE и могли там выбрать нужный task sequence.
Exit win32 codes — коды ошибок в task sequence
Итак, представим себе, что вы успешно запустили task sequence и через некотрое время получили окно с кодом ошибки. Вот типовые коды:
0x80070070 — «There is not enough space on the disk.» На диске нет достаточно места. Такое встречается, когда диск не обнаружен или не является disk 0 на SATA контроллере (нельзя установить ОС на disk 1 и т.д.) или когда в компьютер вставлены другие носители (флэшки, внешние диски). Также такое встречается, когда структура разделов на диске не соотвествует утанавливаемой ОС: например, диск разбит в MBR, а вы ставите в GPT. Это типовая ситуация, когда вы устанавливаете Windows 10 в UEFI (со структурой разделов GPT) после того, как на этом диске стояла Windows 7 в Legacy mode (структура разделов MBR). И самый последний возможный случай — когда на диске есть скрытые или зашифрованные разделы (например с помощью Bitlocker). Во всех случаях диск необходимо очистить от разделов с помощью утилиты diskpart.
Очистка выполняется следующими командами в окне cmd:
diskpart
select disk 0
clean
exit
0x80070490 — «Invalid disk number specified». «System partition is not defined». Failed to identify HDD, failed to identify existing partitions on the HDD, failed to find driver for PCIVEN device. Типовая ошибка, когда Windows PE не может определить наличие диска на контроллере, разделов на нем, часто в случае неправильной настройки в BIOS или в следствие того, что ваш загрузочный образ Windows PE просто не содержит нужных драйверов для вашего контроллера диска. Напомню, что необходимо добавлять драйвера контроллеров в загрузочный образ через утилиту DISM, когда вы переходите с одной платформы на другую.
0x80070032 — «The active system partition on a MBR system must be NTFS». Существующая файловая система или разбиение диска не NTFS. Диск необходимо очистить от разделов с помощью утилиты diskpart.
0x80070570 — «An error occurred while starting task sequence». «The file or directory is corrupted and unreadable.» Эта ошибка может как означать повреждение самого диска или файловой системы, так и исходных файлов пакетов, которые вы ставите на диск. Также эта ошибка встречается, когда компьютер некорректно выключен и Windows хочет проверить диск на ошибки при следующей загрузке.
0x80070057 — «Format failed». Утилита для форматирования диска. встроенная в MDT, не может отформатировать диск. Чаще всего из-за того, что диск не определяется или не подключен как disk 0 в системе.
0x80070002 — «The system cannot find the file specified». Если установка происходит с SCCM, то это означает, что пакет не удалось успешно скачать с сервера, в остальных случаях — в пакете установки программы используется неверный путь или отсуствуют какие-то файлы.
0x80004005 — «An error occurred while retrieving policy for this computer». Эта ошибка может иметь за собой массу различных причин, потому что 4005 — это generic code, означающий, что операция не может быть выполнена. Но если она встречается в самом начале до выбора task sequence для исполнения и сопровожается текстом ошибки «An error occurred while retrieving policy for this computer», то это происходит, когда клиент не может получить список task sequence с SCCM сервера. Причина тому — неправильное время, установленное на клиете или сетевая ошибка. Также, это может быть следствием того, что сертификат в загрузочном образе (boot image) и сертификат на Management point сервере SCCM отличаются.
Поясню механизм, как это работает. Ваш загрузочный образ должен содержать всю неободимую информацию для подключения к серверам SCCM (прописывается в конфигурационном файле MDT). Затем, при загрузке Windows PE исполняется необходимая последовательность команд, в частности подключение к Management Point, откуда клиент должен забрать список доступных Task sequences. В этот момент ко всему прочему проверяется время на клиенте и на сервере, если они отличаются, сервер ответит отказом. Равно как и в случае неподходящего сертификата.
В остальных случаях 0x80004005 просто означает неудачное выполнение операции. Чтобы узнать детали, что именно было не выполенно, необходимо изучать логи SCCM.
Как собирать логи SCCM / MDT
MDT создает следующие лог-файлы:
- BDD.log. Это файл-агрегатор, который содержит результаты основных шагов task sequence.
- dism.log — лог, создаваемый командой DISM, когда та используется для конфигурирования установленной Windows (в первую очередь при unattended установке драйверов)
- LiteTouch.log. Этот файл создается, если вы используете LTI деплойменты. По умолчанию располагается в %WINDIR%TEMPDeploymentLogs.
- NetSetup.LOG — файл содержит сетевую информация о добавлении компьютера в домен.
- Scriptname.log. Такие файлы создаются каждым MDT скриптом согласно его имени.
- SMSTS.log. Это главный файл. создаваемый самим секвенсором (исполнителем Task sequence). Этот файл описывает все шаги Task sequence, по окончании каждого шага выводит exit win32 code, с которым он завершился. По умолчанию, этот файл имеет размер 2 Мбайт. Если общий размер лога превышает этот размер, то создается второй, третий и т.д. файлы, начинающиеся на smsts*. Файл может располагаться в %TEMP%, %WINDIR%System32ccmlogs, or C:_SMSTaskSequence, or C:SMSTSLog в зависимости от типа установки (MDT, SCCM, с SCCM килентом или без) и от этапа, на котром сейчас находится установка ОС.
- Wizard.log. Мастер установки MDT создает этот файл.
- WPEinit.log. Этот файл создается Windows PE при его инициализации и полезен при траблшутинге самого Windows PE.
- zticonfigure.log — содержит информацию о конфигурировании кастомных настроек Windows, которые вы указали в конфигурации MDT (чаще всего это региональная локализация). Создается при ZTI деплойментах с SCCM.
- ztigroups.log — содержит информацию о добавлении групп в локальные администраторы на компьютере, если таковые были указаны в настройках MDT. Создается при ZTI деплойментах с SCCM.
В конце выполнения task sequence все логи копируются в папку, указанную в свойстве SLShare файле настроек MDT Customsettings.ini file. Если вы указали сетевой путь, то сетевой ресурс должен быть доступен для этого.
Дополнительно, сама Windows создает два полезных файла в папке C:WindowsPantherUnattendGC — setupact.log и setuperr.log. С помощью них вы можете найти ошибки во время конфигурирования Windows и добавления компьютера в домен.
Расположение логов меняется в зависимости от того, какой тип установки вы используете (LTI, ZTI, с SCCM или без). Но в общем случае порядок их поиска таков:
- На стадии начала работы Windows PE до запуска task sequence логи находятся в X:windowstempsmstslog
- После запуска task sequence в Windows PE, во время форматирования диска и прочих сервисных операций Windows PE — в X:MININTSMSOSDOSDLOGS
- После форматирования диска и во время применения образа на диск — на локальном диске C: или D: (в зависимости от того, как вы форматировали диск): C:_SMSTaskSequenceLogs и C:SMSTSLog
- После установки SCCM клиента, если такая есть в вашем task sequence логи будут сохраняться в C:WindowsCCMLogs, потому что с этого момента SCCM клиент управляет установкой программ.
- В папке %WINDIR%TEMPDeploymentLogs будут храниться логи, если вы использовали LTI установку через MDT без SCCM.
Чем читать логи
Программой Cmtrace. Она вохдит в состав пакет System Center 2012 R2 Configuration Manager Toolkit в виде самостоятельной утилиты. Я рекомендую встроить ее в ваш загрузочный образ. Чтобы прочитать логи в Windows PE, нажмите F8, появится окно cmd, где вы можете или вызвать cmtrace или explorer.
[Посещений: 6 119, из них сегодня: 1]
- Remove From My Forums
-
Question
-
Hello,
I’m trying to deploy & capture a Windows 7 x64 Ent SP1, using SCCM 2012 R2 & MDT 2013 U1.
I`m also using Windows Server 2012 R2 Hyper-v, so this is a virtual machine (no drivers etc).
During the TS, on the «Setup is preparing your computer for first use» I receive this error: «Task Sequence failed with error 0x80070002»
I look into MonitoringOverviewSystem StatusStatus Message QueriesAll Status Messages and I have one message ID:11135
The task sequence execution engine failed executing the action (Use Toolkit Package) in the group (State Restore) with the error code 2147942402
Action output: … pszPkgID, sPath, 0, hUserToken, mapNetworkAccess), HRESULT=80070002 (e:nts_sccm_releasesmsclientosdeploymentinstallsoftwareruncommandline.cpp,399)
cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=80070002 (e:nts_sccm_releasesmsclientosdeploymentinstallsoftwaremain.cpp,372)
WinHttpSendRequest failed.
SendWinHttpRequest failed. 80072ee2.
DownloadFileWithRanges() failed. 80072ee2.
DownloadFile() failed for http://SCCM01.company.local:80/SMS_DP_SMSPKG$/00100009/sccm?/Scripts/DeployWiz_Applications.xml, C:_SMSTaskSequencePackages0100009Scripts/DeployWiz_Applications.xml. 80072ee2.
Error downloading file from http://SCCM01.company.local:80/SMS_DP_SMSPKG$/00100009/sccm?/Scripts/DeployWiz_Applications.xml to C:_SMSTaskSequencePackages0100009Scripts/DeployWiz_Applications.xml
DownloadFiles() failed. 80072ee2.
Download() failed. 80072ee2.
Failed to resolve the source for SMS PKGID=00100009, hr=0x80070002
Install Software failed to run command line, hr=0x80070002. The operating system reported error 2147942402: The system cannot find the file specified.From the VM, I also look into C:windowsCCMLogssmstslogsmsts.log and one of the messages is:
ZTI deployment failed, Return Code = -2147024894 0x80070002
Any advice on how to troubleshoot this one ?
Thank you.
Answers
-
Hello,
It was only a typo, I`m using MDT 2013 ( not Update 1 Preview), sorry about the misinformation.
In my case it wasn’t the Network Access Account, I know about that, I read all the threads regarding this issue.
Okay so I did the following:
1. On the Distribution Point Proprieties I check «Allow clients to connect anonymously». ( it wasn’t checked by default)
2. From IIS, I check SMS_DP_SMSPKG$, set Anonymous Authentication to «Enabled» and restart IIS.
3. Select my «Windows 7 Enterprise Eng x64 Default Image» and from the Data Access tab, I check «Copy the content in this package to a package share on distribution points».
And it works 🙂
Regards.
-
Edited by
Thursday, May 14, 2015 3:25 PM
typo -
Marked as answer by
RBogdan
Thursday, May 14, 2015 3:26 PM
-
Edited by
-
Are you using the MDT 2013 Update 1 Technical Preview? Probably not the best idea….
You should be using MDT 2013 — https://www.microsoft.com/en-au/download/details.aspx?id=40796
Aside from this — it appears as though the Network Access Account is having trouble accessing your DP. This is a known issue when you have updated form a previous version of MDT and you haven’t re-created your Task Sequences and also re-created and distributed
a new MDT Files package.In some instances, people have had to re-add the Network Access Account and re-validate in the Config Manager console.
Regards
Damon
-
Edited by
Damon. Johns
Monday, April 20, 2015 2:57 AM -
Proposed as answer by
Joyce L
Wednesday, May 6, 2015 6:57 AM -
Marked as answer by
Joyce L
Friday, May 8, 2015 9:19 AM
-
Edited by
- Remove From My Forums
-
Question
-
Hello,
I’m trying to deploy & capture a Windows 7 x64 Ent SP1, using SCCM 2012 R2 & MDT 2013 U1.
I`m also using Windows Server 2012 R2 Hyper-v, so this is a virtual machine (no drivers etc).
During the TS, on the «Setup is preparing your computer for first use» I receive this error: «Task Sequence failed with error 0x80070002»
I look into MonitoringOverviewSystem StatusStatus Message QueriesAll Status Messages and I have one message ID:11135
The task sequence execution engine failed executing the action (Use Toolkit Package) in the group (State Restore) with the error code 2147942402
Action output: … pszPkgID, sPath, 0, hUserToken, mapNetworkAccess), HRESULT=80070002 (e:nts_sccm_releasesmsclientosdeploymentinstallsoftwareruncommandline.cpp,399)
cmd.Execute(pszPkgID, sProgramName, dwCmdLineExitCode), HRESULT=80070002 (e:nts_sccm_releasesmsclientosdeploymentinstallsoftwaremain.cpp,372)
WinHttpSendRequest failed.
SendWinHttpRequest failed. 80072ee2.
DownloadFileWithRanges() failed. 80072ee2.
DownloadFile() failed for http://SCCM01.company.local:80/SMS_DP_SMSPKG$/00100009/sccm?/Scripts/DeployWiz_Applications.xml, C:_SMSTaskSequencePackages0100009Scripts/DeployWiz_Applications.xml. 80072ee2.
Error downloading file from http://SCCM01.company.local:80/SMS_DP_SMSPKG$/00100009/sccm?/Scripts/DeployWiz_Applications.xml to C:_SMSTaskSequencePackages0100009Scripts/DeployWiz_Applications.xml
DownloadFiles() failed. 80072ee2.
Download() failed. 80072ee2.
Failed to resolve the source for SMS PKGID=00100009, hr=0x80070002
Install Software failed to run command line, hr=0x80070002. The operating system reported error 2147942402: The system cannot find the file specified.From the VM, I also look into C:windowsCCMLogssmstslogsmsts.log and one of the messages is:
ZTI deployment failed, Return Code = -2147024894 0x80070002
Any advice on how to troubleshoot this one ?
Thank you.
Answers
-
Hello,
It was only a typo, I`m using MDT 2013 ( not Update 1 Preview), sorry about the misinformation.
In my case it wasn’t the Network Access Account, I know about that, I read all the threads regarding this issue.
Okay so I did the following:
1. On the Distribution Point Proprieties I check «Allow clients to connect anonymously». ( it wasn’t checked by default)
2. From IIS, I check SMS_DP_SMSPKG$, set Anonymous Authentication to «Enabled» and restart IIS.
3. Select my «Windows 7 Enterprise Eng x64 Default Image» and from the Data Access tab, I check «Copy the content in this package to a package share on distribution points».
And it works 🙂
Regards.
-
Edited by
Thursday, May 14, 2015 3:25 PM
typo -
Marked as answer by
RBogdan
Thursday, May 14, 2015 3:26 PM
-
Edited by
-
Are you using the MDT 2013 Update 1 Technical Preview? Probably not the best idea….
You should be using MDT 2013 — https://www.microsoft.com/en-au/download/details.aspx?id=40796
Aside from this — it appears as though the Network Access Account is having trouble accessing your DP. This is a known issue when you have updated form a previous version of MDT and you haven’t re-created your Task Sequences and also re-created and distributed
a new MDT Files package.In some instances, people have had to re-add the Network Access Account and re-validate in the Config Manager console.
Regards
Damon
-
Edited by
Damon. Johns
Monday, April 20, 2015 2:57 AM -
Proposed as answer by
Joyce L
Wednesday, May 6, 2015 6:57 AM -
Marked as answer by
Joyce L
Friday, May 8, 2015 9:19 AM
-
Edited by
Posted by d_c1 2014-09-28T22:24:38Z
Hi Community,
I have been asked to do a deployment using SCCM 2012 R2 for a HP 640 G1 build. I have added the drivers, created a driver package and added a task sequence to install the new drivers. Problem is it fails with the above error at the Toolkit install or before. I am using a CD boot to build the image not PXE
I hope someone out in the community can help. I attach the SMSTS.log file to assist with any advice.
Thanks so much for any input.
13 Replies
-

have you used the toolkit package previously ?
Was this post helpful?
thumb_up
thumb_down
-

start by loading into PE Press F8 to bring up a cmd
check your getting an ip — if not you haven’t loaded the network driver into the boot image
Was this post helpful?
thumb_up
thumb_down
-

Thanks for your reply. Yes I am getting an IP address when I press F8. The basic setup for the builds has been setup by someone previously I am just adding new drivers for a different model of laptop. I thought it would be a simple process.
Was this post helpful?
thumb_up
thumb_down
-

habanero
Imaging, Deployment, & Patching Expert
-
check
205
Best Answers -
thumb_up
197
Helpful Votes -
format_list_bulleted
12
How-tos
Is this a trick? I do not see SMSTS.log or im blind. It is Monday morning ya know.
Was this post helpful?
thumb_up
thumb_down
-
check
-

Apologies, thought I had attached the smsts.log. Any help appreciated..
Was this post helpful?
thumb_up
thumb_down
-

smsts.log third attempt
attach_file
Attachment
smsts.log
582 KB
Was this post helpful?
thumb_up
thumb_down
-

Go to ConfigMgr — Administration — Site Configuration — Servers and Site System Roles — Right-Click “Distribution Point” — Properties — Make sure the “HTTP” and “Allow clients to connect anonymously” buttons are checked.
Was this post helpful?
thumb_up
thumb_down
-

also are other models working?, your getting a lot of HTTP errors
Was this post helpful?
thumb_up
thumb_down
-

Hi Jared, Yes checked http selected as well as “Allow clients to connect anonymously” buttons are checked.
Any other ideas?
Was this post helpful?
thumb_up
thumb_down
-

habanero
Imaging, Deployment, & Patching Expert
-
check
205
Best Answers -
thumb_up
197
Helpful Votes -
format_list_bulleted
12
How-tos
log file says:
<
has the package just stopped working or has it always been working ?
Was this post helpful?
thumb_up
thumb_down
-

Hi All after further investigation I found that the boot image was not current. I have only limited knowledge, apologies. The boot image was 6.2.9600.16. I have created a new boot image 6.3.9600.16 using create boot image from MSDT. It still does not work and gives in SMSTS.log the following error:
thread=»1176″ file=»libsmsmessaging.cpp:5868″>
<![LOG[Failed to get client identity (80072efd)]LOG]!><time=»16:53:49.751+480″ date=»10-07-2014″So any input useful. Thanks
Was this post helpful?
thumb_up
thumb_down
-

habanero
Imaging, Deployment, & Patching Expert
-
check
205
Best Answers -
thumb_up
197
Helpful Votes -
format_list_bulleted
12
How-tos
Make sure that computer name is removed from the list of clients in SCCM db (all systems collection). Since your using a new boot image make sure that boot image is in your Task Sequence and not the old boot image. You could make a new task sequence with the new boot image for grins and try it as well.
With the client pc not known to SCCM db list of clients you would need to deploy your Task Sequence to the x86 or x64 Unknown Client Computer Collection.
Was this post helpful?
thumb_up
thumb_down
-
check
Hey guys im new here, ive just inherited an SCCM 2012 R2 environment, and been tasked to provide an offline media solution for some of our facilities that do not have access to our network. I decided to use standalone media for this, and currently running into Error Code 0x80070002 while Imaging. What is strange about it is it will begin imaging, Reboot after the format and partition disk section, upon reboot, it will continue to the applying image stage, and then fail. If I reattempt to boot into the media once more, it will image successfully.
What ive found online is that the error code points to a service account access issue, however this is for offline media use, so it does not apply. That being said, another thing comes to mind, since I copied an existing Task sequence that is used for standard deployment, should change the value in Apply network settings to join a workgroup instead of the domain if it is a service account issue? I have that stage to continue on error, even though it fails. I have taken a screenshot of the final sections of the smsts.log where it begins to fail:
https://www.dropbox.com/s/0zayin5220xjfq2/smsts.png?dl=0
Thanks in advanced.