Ccmsetup failed with error code 0x80070643

I have an xp sp3 machine that client push is failing on.  I have used wbemtest to confirm that wmi is working and accessible to the network access account.  I would like to ru ccmclean on the machine, but it's a laptop with an user logged on, so that is always a bit tricky. I did run it using psexec and the /q switch, but the exe just sat as a running process for 45 mins and nothing appeared to happen. I have disabled the xp firewall service.  Below are the last few lines of the ccmsetup log:
  • Remove From My Forums
  • Question

  • I have an xp sp3 machine that client push is failing on.  I have used wbemtest to confirm that wmi is working and accessible to the network access account.  I would like to ru ccmclean on the machine, but it’s a laptop with an user logged on, so
    that is always a bit tricky. I did run it using psexec and the /q switch, but the exe just sat as a running process for 45 mins and nothing appeared to happen. I have disabled the xp firewall service.  Below are the last few lines of the ccmsetup log:

    File C:WINDOWSccmsetupMicrosoftPolicyPlatformSetup.msi installation failed. Error text: ExitCode: 1603
    InstallFromManifest failed 0x80070643
    Sending Fallback Status Point message to ‘CKTSCCM02.CDS.INT’, STATEID=’311′.
    Failed to get client version for sending messages to FSP. Error 0x80041013
    Params to send FSP message ‘5.0.7804.1300 Deployment Error 0x80070643. Pre-req: MicrosoftPolicyPlatformSetup.msi. ExitCode: 1603 Action:  ErrorMessages: ‘
    State message with TopicType 800 and TopicId {9BAA09F2-B5D1-4C8B-9AD0-1D6DE9D0E850} has been sent to the FSP
    CcmSetup failed with error code 0x80070643

Answers

  • There does not seem to be a client.msi.log in the ccmsetup folder.   Here are the relevant portions of the policyplatformsetup.msi.log:

    CAQuietExec:  MOF file has been successfully parsed
    CAQuietExec:  Storing data in the repository…
    CAQuietExec:  An error occurred while processing item 1 defined on lines 19 — 22 in file C:Program FilesMicrosoft Policy PlatformSchemaNamespaces.mof:
    CAQuietExec:  0X80041002 Class, instance, or property ‘Name’ was not found.
    CAQuietExec:  Error 0x80070003: Command line returned an error.
    CAQuietExec:  Error 0x80070003: CAQuietExec Failed

    UPDATE: I fixed it by doing a winmgmt /resetrepository

    • Edited by

      Wednesday, September 25, 2013 3:48 PM

    • Marked as answer by
      dpmaker
      Wednesday, September 25, 2013 3:56 PM

email me

I ran into an issue where I could not install the CM agent. This was the fix.

  • Repair WMI
  • Repair MOF
  • Repair system files
  • Reset Windows Updates

CCMSetup.log Errors

File C:WINDOWSccmsetup{1990B09E-077D-46F9-B575-2AB675E44670}client.msi installation failed. Error text: ExitCode: 1603
Action: SmsClientInstallSucceeded.
ErrorMessages:

An error occurred during the installation of assembly ‘Microsoft.ConfigurationManager.WinRTProvider.dll,Version=”5.0.0.0″,Culture=”neutral”,PublicKeyToken=”31bf3856ad364e35″‘. Please refer to Help and Support for more information.

MSI: Action 21:55:12: CcmRegisterComponentsRollback. In the event of a failed installation, this action rolls back the changes from CcmRegisterComponents.

Failed to connect to policy namespace. Error 0x8004100e

Failed to get MDM_ConfigSetting instance, 0x80041010

CcmSetup failed with error code 0x80070643

Solution (script.cmd)

* save and run as admin

:: MrNetTek
:: eddiejackson.net
:: 3/18/2021
:: free for public use
:: free to claim as your own

@echo off
net stop ccmexec /y
c:windowsccmsetupccmsetup.exe /uninstall
net stop VMAuthdService /y
::sc config winmgmt start= disabled
net stop winmgmt /y
%systemdrive%
cd %systemroot%system32wbem
rd /S /Q repository
regsvr32 /s %systemroot%system32scecli.dll
regsvr32 /s %systemroot%system32userenv.dll
mofcomp cimwin32.mof
mofcomp cimwin32.mfl
mofcomp rsop.mof
mofcomp rsop.mfl
for /f %%s in ('dir /b /s *.dll') do regsvr32 /s %%s
for /f %%s in ('dir /b *.mof') do mofcomp %%s
for /f %%s in ('dir /b *.mfl') do mofcomp %%s
mofcomp exwmi.mof
mofcomp -n:rootcimv2applicationsexchange wbemcons.mof
mofcomp -n:rootcimv2applicationsexchange smtpcons.mof
mofcomp exmgmt.mof
For /f %%s in ('dir /b *.dll') do regsvr32 /s %%s
wmiprvse /regserver
winmgmt /regserver
net start winmgmt
net start VMAuthdService

reg delete "HKLMSOFTWAREPoliciesMicrosoftWindowsWindowsUpdate" /f
net stop wuauserv
rd %systemroot%SoftwareDistribution /Q /S
SC sdshow wuauserv
SC sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
wuauclt.exe /detectnow

chkdsk /f

mofcomp "C:Program FilesMicrosoft Policy PlatformExtendedStatus.mof"
fsutil resource setautoreset true C:
timeout /t 300
shutdown -r -f -t 0

Notes


2013 Redistributable – 12.0.40664.0, or later


Update for Microsoft Silverlight (KB4481252)

Verify Permissions On

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheTreeMicrosoftConfiguration Manager

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheTasks


Copy Accessibility.dll from a Working Machine

C:WindowsMicrosoft.NETassemblyGAC_MSILAccessibilityv4.0_4.0.0.0__b03f5f7f11d50a3a

Cumulative Update KB5000802

Windows Installer Cleanup Utility

Ошибка 0x80070643 может появиться как при скачивании Net Framework через Центр обновлений Windows, так и при установке этой утилиты напрямую. У этой проблемы бывают разные причины. И некоторые из них не зависят от действий пользователя. Некорректная загрузка, случайное удаление или изменение системных файлов, вредоносное ПО, конфликтующие приложения — всё это может привести к плачевным последствиям. Если ОС «обнаружит», что что-то не так, она, скорее всего, выдаст окно с надписью «Installation failed with error code» и кодом ошибки. В большинстве случаев её можно исправить самостоятельно.

Microsoft NET Framework логотип

Microsoft NET Framework очень распространенная программная платформа

Как проявляется ошибка 0x80070643 и почему она возникает?

При возникновении этого сбоя соответствующее оповещение может и не появиться. И зачем с ней разбираться, если она не мешает? Дело в том, что это сообщение «выскочит» при запуске любой программы, связанной с Net Framework. И оно будет постоянно надоедать, мешать нормальной работе. Подобная ошибка способна негативно повлиять на операционную систему. Вот основные признаки появления error 0x80070643:

  • Наблюдаются критичные зависания системы, которые длятся несколько секунд.
  • Компьютер сильно «тормозит».
  • Слишком большое время отклика при вводе текста с клавиатуры или использовании мыши.
  • При запуске некоторых утилит появляется диалоговое окно «Installation failed with error code 0x80070643».
  • Такое же оповещение иногда «выскакивает» при выключении или включении компьютера.
  • Или при обновлении Net Framework (будет сообщение вроде «В процессе установки произошла неисправимая ошибка»). Это не значит, что в этой ситуации нельзя ничего предпринять. Просто операционная система не смогла избавиться от проблемы своими силами, и ей требуется помощь со стороны пользователя.

Microsoft NET Framework установка

Оповещение «Installation failed with error code» может появиться из-за:

  • Вируса, который повредил системные данные.
  • Ошибки в реестре.
  • Неполной или прерванной загрузки программы Net Framework.
  • Некорректного изменения, связанного с ней ПО.
  • Неправильной регистрации обновления MSI.
  • Установки приложения с удалённого рабочего стола.

Все факторы перечислить невозможно. Эта утилита может перестать работать по разным причинам. Но все они сводятся к одному — повреждены или недоступны важные файлы или ресурсы.

Как исправить ошибку 0x80070643 при установке Net Framework?

Если в процессе установки произошла неисправимая ошибка 0x80070643, её можно убрать несколькими способами. Конкретный алгоритм решения проблемы зависит от причин её появления. Если вы не знаете, почему Net Framework не включается, попробуйте все методы по очереди. Вначале расписаны самые простые варианты.

Перед исправлением ошибки:

  • Запустите антивирус и начните проверку. Если error 0x80070643 возникла из-за вредоносных программ, их надо устранить. Иначе проблема появится снова. Заражённые файлы можно удалить, вылечить или отправить в карантин. Главное, чтобы они не навредили системе.
  • Обновите все драйвера.
  • Проведите очистку системы. Для этого воспользуйтесь встроенным в ОС приложением. Его можно открыть через Пуск — Программы — Стандартные — Служебные. Заодно сможете удалить временные файлы, которые занимают память. Также есть специализированный софт для чистки мусора. Например, CCleaner или CleanMaster.
  • Удалите и переустановите программу, при запуске которой появляется сообщение «Installation failed with error code». Если ошибка «вылетает» просто так и не относится к какой-либо утилите, попробуйте другие способы.
  • Проверьте системный диск. Для этого кликните по нему правой кнопкой мыши, выберите «Свойства», перейдите на вкладку «Сервис» и нажмите «Выполнить проверку».

Восстановление Net Framework

Диспетчер задач Windows 7

Чтобы убрать оповещение «В процессе установки произошла неисправимая ошибка», сделайте следующее:

  1. Закройте все активные программы и завершите связанные с ними задачи. Это можно сделать через Диспетчер задач. Для его вызова нажмите Ctrl+Alt+Del. Не отключайте системные процессы.
  2. Перейдите в меню «Пуск».
  3. Далее в «Панель управления»
  4. Откройте «Программы и компоненты» (если у вас настроено отображение по категориям, выберите «Удаление программ»)
  5. Найдите в открывшемся списке пункт «Microsoft .Net Framework» и щёлкните на него.
  6. Нажмите кнопку «Удалить/Изменить». Та же опция есть в контекстном меню, которое можно вызвать правой кнопкой мыши.
  7. В появившемся окне маркером отметьте «Восстановить» и нажмите «Далее».
  8. Дождитесь, пока пройдёт восстановление.
  9. Перезагрузите ПК.
  10. Обновите Net Framework через Windows Update.

Исправление реестра и сетевых ошибок.

В большинстве случаев сообщения со словами «Installation failed with error code» свидетельствует о наличии неисправностей в реестре. Чтобы их устранить вручную и при этом ничего не поломать, надо быть веб-мастером. Но есть программы, которые делают это автоматически.

  • WinThruster. Поиск нерабочих и «пустых» ссылок на отсутствующие данные. Исправление повреждённых записей реестра. Создание резервной копии перед сканированием.
  • Net Adapter Repair All In One. Ищет сетевые ошибки. Из-за них может не загружаться нужное обновление. Утилита не устраняет неисправности сама, а оставляет выбор за пользователем.
  • Registry Repair. Простая утилита с понятным интерфейсом. Если оповещение «Installation with error» появилось из-за проблем с реестром, эта программа их найдёт. Она распознаёт записи, которые сделали вирусы-рекламщики и шпионское ПО. Все изменения можно откатить.
  • Reg Organizer. Позволяет просматривать reg-файлы ещё до их добавления в реестр. Можно полностью удалить какое-либо приложение сразу со всеми записями.

Чистка реестра избавит вас от многих багов. Компьютер будет лучше работать.

Специализированные программы

Можно воспользоваться средством восстановления Net Framework. Оно находится на официальном сайте компании Microsoft. Распространяется бесплатно. Но русский язык не поддерживает. Доступен только английский.

Восстановление системы Windows 7

Однако пользоваться этим средством легко. У него минимальный функционал. После восстановления надо вновь запустить обновление программы.

Восстановление системы

Самый эффективный вариант при сбое установки Net Framework — вернуть операционную систему в то состояние, которое было до ошибки. Тогда не будет появляться окно с оповещением «Installation failed with error code». Но то, что привело к неисправности в первый раз, может вновь её вызвать. Поэтому после восстановления просканируйте реестр, проверьте, нет ли вирусов, и избавьтесь от сомнительных программ, которые вы устанавливали перед появлением проблемы. Возможно, какая-то из них и стала причиной ошибки.

Теперь разберёмся, как откатить ОС.

  1. Перейдите в Пуск — Программы — Стандартные — Служебные — Восстановление системы.
  2. Отметьте пункт «Другая точка восстановления» и подтвердите.
  3. Выберите дату до появления неисправности. Рядом с ней указано действие, которое в тот момент произошло (обновление, удаление, инсталляция и так далее).
  4. Если вы не знаете, в какой точно момент возникла ошибка, нажмите на кнопку «Поиск затрагиваемых программ». Отобразиться список утилит, которые откатятся в результате восстановления.
  5. Это относительно долгий процесс. Потребуется перезагрузка.

Ваши личные папки, данные, документы, картинки, видео и прочее затронуты не будут. Изменятся или удалятся только приложения, влияющие на работу ОС.

Ошибка 0x80070643 при установке Net Framework не такая страшная, как кажется. Для её исправления не надо спрашивать совета у знакомого системного администратора или относить компьютер в «починку». Можно обойтись чисткой реестра и средствами восстановления.

Please find below log, I tried rebuilding WMI, by resetting the repository and registering all DLL files, but no luck, any solution to resolve the issue really appriciated

<![LOG[MSI: Action 14:55:20: LoadPolicyPlatformWmiProviders_Rollback. ]LOG]!><time=»14:55:20.480-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»0″ thread=»6792″ file=»msiutil.cpp:314″>
<![LOG[MSI: Action 14:55:20: LoadPolicyPlatformWmiProviders_Commit. ]LOG]!><time=»14:55:20.480-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»0″ thread=»6792″ file=»msiutil.cpp:314″>
<![LOG[MSI: Action 14:55:20: LoadPolicyPlatformWmiProviders. Loading WMI providers]LOG]!><time=»14:55:20.480-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»0″ thread=»6792″ file=»msiutil.cpp:314″>
<![LOG[MSI: Action 14:55:20: Rollback. Rolling back action:]LOG]!><time=»14:55:20.589-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»0″ thread=»6792″ file=»msiutil.cpp:314″>
<![LOG[File C:windowsccmsetupMicrosoftPolicyPlatformSetup.msi installation failed. Error text: ExitCode: 1603
Action:
ErrorMessages:
]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»3″ thread=»6792″ file=»msiutil.cpp:876″>
<![LOG[InstallFromManifest failed 0x80070643]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»3″ thread=»6792″ file=»ccmsetup.cpp:7202″>
<![LOG[A Fallback Status Point has not been specified.  Message with STATEID=’311′ will not be sent.]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»1″ thread=»6792″ file=»ccmsetup.cpp:9763″>
<![LOG[‘Configuration Manager Client Retry Task’ is scheduled to run at 12/29/2014 07:55:23 PM (local) 12/29/2014 02:25:23 PM (UTC) time with arguments ‘ «SMSSITECODE=IND» /RetryWinTask:1’.]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»1″ thread=»6932″ file=»wintask.cpp:315″>
<![LOG[Creating Windows Task Scheduler folder ‘MicrosoftConfiguration Manager’…]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»0″ thread=»6932″ file=»wintask.cpp:160″>
<![LOG[CcmSetup failed with error code 0x80070643]LOG]!><time=»14:55:23.712-330″ date=»12-29-2014″ component=»ccmsetup» context=»» type=»1″ thread=»6932″ file=»ccmsetup.cpp:10879″>

During a migration project with a customer, we ran into the problem where some of the clients wouldn’t be uninstalled correctly. When using the supported way of uninstalling the ConfigMgr 2012 client, the following error was shown in the ccmsetup.log file:

Installation failed with error code 1603
A Fallback Status Point has not been specified. Message with STATEID=’301′ will not be sent.
CcmSetup failed with error code 0x80070643

124_1
We tried rebooting the device that were failing, but as good of a troubleshooting tactic that might be for Windows systems, it didn’t work (who would’ve thought that anyway). When we interpreted the client.msi_uninstall.log file, that didn’t contain more than a few lines, we didn’t get that much more wiser. The only thing that we could get out of that log file was the following:

MainEngineThread is returning 1603

Well thank you very much for giving us that fatal error message all over again!
A quick search on Google pointed us in the direction where it could be related to a faulty WMI repository. We ran a few queries and for the most part it gave us an unexpected error. So we decided to try to rebuild the WMI repository on one of the devices that were experiencing problems when trying to uninstall the ConfigMgr client. At this point I realized that I’ve been wanting to write a PowerShell script that would assist in rebuilding the WMI repository, but I didn’t yet have had any time. After some digging around on the internet and a few rows of code, I ended up with the following code:

<#
.SYNOPSIS
    Maintenance script for Windows Management Instrumentation
.DESCRIPTION
    This script can perform management tasks such as rebuilding the WMI repository. On Windows 6.x and above, the default behaviour of this script
    is to salvage the WMI repository first. If that doesn't give any successful results, you'll have the option add the Reset parameter
.PARAMETER Task
    Specify a maintenance task to perform
    Valid tasks:
    - Rebuild
.PARAMETER Reset
    Enables you to reset the WMI repository instead of the default option that is to salvage (only for Windows 6.x and above)
.EXAMPLE
     .Start-WMIMaintenance -Task Rebuild -Verbose
     Rebuilds the WMI repository on the local system, showing verbose output
.NOTES
     Script name: Start-WMIMaintenance.ps1
     Version:     1.0
     Author:      Nickolaj Andersen
     Contact:     @NickolajA
     DateCreated: 2015-02-11
#>
[CmdletBinding(SupportsShouldProcess=$true)]
param(
    

[parameter(Mandatory=$true)]

[ValidateSet(“Rebuild”)]
[string]$Task,

[parameter(Mandatory=$false)]

[switch]$Reset
)
Begin {
# Stop Windows Management Instrumentation dependent services
$RunningServicesArrayList = New-Object -TypeName System.Collections.ArrayList
foreach ($Service in (Get-Service -Name Winmgmt).DependentServices) {
if ($Service.Status -like “Running”) {
$RunningServicesArrayList.Add($Service.Name) | Out-Null
Write-Verbose -Message “Stopping Winmgmt dependent service ‘$($Service.Name)’”
Stop-Service -Name $Service.Name -Force -ErrorAction Stop
}
}
try {
# Stop Windows Management Instrumentation service
Write-Verbose -Message “Stopping Windows Management Instrumentation service”
Stop-Service -Name “Winmgmt” -Force -ErrorAction Stop
}
catch {
Throw “Unable to stop ‘Winmgmt’ service”
}
# Contruct an array of locations to the WMI repository
$WMIPaths = @((Join-Path -Path $env:SystemRoot -ChildPath “System32wbem”),(Join-Path -Path $env:SystemRoot -ChildPath “SysWOW64wbem”))
}
Process {
if ($PSBoundParameters.Values -contains “Rebuild”) {
# Re-register WMI executables
foreach ($WMIPath in $WMIPaths) {
if (Test-Path -Path $WMIPath -PathType Container) {
$WMIExecutables = @(“unsecapp.exe”,”wmiadap.exe”,”wmiapsrv.exe”,”wmiprvse.exe”,”scrcons.exe”)
foreach ($WMIExecutable in $WMIExecutables) {
$CurrentExecutablePath = (Join-Path -Path $WMIPath -ChildPath $WMIExecutable)
if (Test-Path -Path $CurrentExecutablePath -PathType Leaf) {
Write-Verbose -Message “Registering: $($CurrentExecutablePath)”
Start-Process -FilePath $CurrentExecutablePath -ArgumentList “/RegServer” -Wait
}
}
}
else {
Write-Warning -Message “Unable to locate path ‘$($WMIPath)’”
}
}
# Reset WMI repository
if ([System.Environment]::OSVersion.Version.Major -ge 6) {
$WinMgmtPath = Join-Path -Path $env:SystemRoot -ChildPath “System32wbemwinmgmt.exe”
if ($PSBoundParameters[“Reset”]) {
Write-Verbose -Message “Resetting WMI repository”
Start-Process -FilePath $WinMgmtPath -ArgumentList “/resetrepository” -Wait
}
else {
Write-Verbose -Message “Salvaging WMI repository”
Start-Process -FilePath $WinMgmtPath -ArgumentList “/salvagerepository” -Wait
}
}
else {
foreach ($WMIPath in $WMIPaths) {
if (Test-Path -Path $WMIPath -PathType Container) {
$MOFFiles = Get-ChildItem $WMIPath -Include “*.mof”,”*.mfl” -Recurse
foreach ($MOFFile in $MOFFiles) {
$CurrentMOFFilePath = (Join-Path -Path $WMIPath -ChildPath $MOFFile)
Write-Verbose -Message “Compiling MOF: $($CurrentMOFFilePath)”
Start-Process -FilePath (Join-Path -Path $env:SystemRoot -ChildPath “System32wbemmofcomp.exe”) -ArgumentList $CurrentMOFFilePath -Wait
}
}
else {
Write-Warning -Message “Unable to locate path ‘$($WMIPath)’”
}
}
if ([System.Environment]::OSVersion.Version.Minor -eq 1) {
Start-Process -FilePath (Join-Path -Path $env:SystemRoot -ChildPath “System32rundll32.exe”) -ArgumentList wbemupgd,UpgradeRepository
}
else {
Start-Process -FilePath (Join-Path -Path $env:SystemRoot -ChildPath “System32rundll32.exe”) -ArgumentList wbemupgd,RepairWMISetup
}
}
}
}
End {
# Start Windows Management Instrumentation service
Write-Verbose -Message “Starting Windows Management Instrumentation service”
Start-Service -Name “Winmgmt”
# Start previously running services that was stopped by this script
foreach ($Service in $RunningServicesArrayList) {
Write-Verbose -Message “Starting service ‘$($Service)’”
Start-Service -Name $Service -ErrorAction SilentlyContinue
}
}

In order to run the script, save the script above as Start-WMIMaintenance.ps1 in e.g. C:Scripts.
1. Open an elevated PowerShell console.
2. Browse to the C:Scripts.
3. Run the following command:

.Start-WMIMaintenance.ps1 -Task Rebuild -Verbose

After that we had run the script on the device that we decided to rebuild the WMI repository on, we were successful in uninstalling the ConfigMgr client.
Here’s the output from the script, to give you a better idea of what it does:
124_2

(8497)

Nickolaj Andersen

Chief Technical Architect and Enterprise Mobility MVP since 2016. Nickolaj has been in the IT industry for the past 10 years specializing in Enterprise Mobility and Security, Windows devices and deployments including automation. Awarded as PowerShell Hero in 2015 by the community for his script and tools contributions. Creator of ConfigMgr Prerequisites Tool, ConfigMgr OSD FrontEnd, ConfigMgr WebService to name a few. Frequent speaker at conferences such as Microsoft Ignite, NIC Conference and IT/Dev Connections including nordic user groups.

Понравилась статья? Поделить с друзьями:
  • Ccmsetup failed with error code 0x800704dd
  • Cdc304 bmw ошибка
  • Cdbexception как исправить
  • Cdb9 bmw x5 e70 ошибка
  • Cdb004 ошибка bmw