- wpBeta
-
对win10系统准备升级更新的时候,有的小伙伴们可能遇到提示出错0x8007042B,对于这种问题小编觉得可能是因为我们系统更新的时候出现了一些问题,可以在指定的系统运行DiagPackage.diagpkg程序即可,来看看详细操作吧。
win10系统更新错误0x8007042B:
方法一:
1、首先按下快捷键“ctrl+alt+del”打开任务管理器。
2、然后找到其中的恶意程序,右击选择“结束任务”。
3、然后再次尝试win10系统的更新即可。
方法二:
1、可到以下途径,尝试运行“DiagPackage.diagpkg”
C:WindowsdiagnosticssystemWindowsUpdateDiagPackage.diagpkg
2、如果以上不行,试试按查找Powershell(选择ISE)右键用管理员运行把以下拷贝到里面
运行运行完后重启电脑然后再试试看。
$arch=Get-WMIObject-ClassWin32_Processor-ComputerNameLocalHost|Select-ObjectAddressWidth
Write-Host"1.StoppingWindowsUpdateServices..."
Stop-Service-NameBITS
Stop-Service-Namewuauserv
Stop-Service-Nameappidsvc
Stop-Service-Namecryptsvc
Write-Host"2.RemoveQMGRDatafile..."
Remove-Item"$env:allusersprofileApplicationDataMicrosoftNetworkDownloaderqmgr*.dat"-ErrorActionSilentlyContinue
Write-Host"3.RenamingtheSoftwareDistributionandCatRootFolder..."
Rename-Item$env:systemrootSoftwareDistributionSoftwareDistribution.bak-ErrorActionSilentlyContinue
Rename-Item$env:systemrootSystem32Catroot2catroot2.bak-ErrorActionSilentlyContinue
Write-Host"4.RemovingoldWindowsUpdatelog..."
Remove-Item$env:systemrootWindowsUpdate.log-ErrorActionSilentlyContinue
Write-Host"5.ResettingtheWindowsUpdateServicestodefualtsettings..."
"sc.exesdsetbitsD:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"
"sc.exesdsetwuauservD:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"
Set-Location$env:systemrootsystem32
Write-Host"6.RegisteringsomeDLLs..."
regsvr32.exe/satl.dll
regsvr32.exe/surlmon.dll
regsvr32.exe/smshtml.dll
regsvr32.exe/sshdocvw.dll
regsvr32.exe/sbrowseui.dll
regsvr32.exe/sjscript.dll
regsvr32.exe/svbscript.dll
regsvr32.exe/sscrrun.dll
regsvr32.exe/smsxml.dll
regsvr32.exe/smsxml3.dll
regsvr32.exe/smsxml6.dll
regsvr32.exe/sactxprxy.dll
regsvr32.exe/ssoftpub.dll
regsvr32.exe/swintrust.dll
regsvr32.exe/sdssenh.dll
regsvr32.exe/srsaenh.dll
regsvr32.exe/sgpkcsp.dll
regsvr32.exe/ssccbase.dll
regsvr32.exe/sslbcsp.dll
regsvr32.exe/scryptdlg.dll
regsvr32.exe/soleaut32.dll
regsvr32.exe/sole32.dll
regsvr32.exe/sshell32.dll
regsvr32.exe/sinitpki.dll
regsvr32.exe/swuapi.dll
regsvr32.exe/swuaueng.dll
regsvr32.exe/swuaueng1.dll
regsvr32.exe/swucltui.dll
regsvr32.exe/swups.dll
regsvr32.exe/swups2.dll
regsvr32.exe/swuweb.dll
regsvr32.exe/sqmgr.dll
regsvr32.exe/sqmgrprxy.dll
regsvr32.exe/swucltux.dll
regsvr32.exe/smuweb.dll
regsvr32.exe/swuwebv.dll
Write-Host"7)RemovingWSUSclientsettings..."
REGDELETE"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate"/vAccountDomainSid/f
REGDELETE"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate"/vPingID/f
REGDELETE"HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate"/vSusClientId/f
Write-Host"8)ResettingtheWinSock..."
netshwinsockreset
netshwinhttpresetproxy
Write-Host"9)DeleteallBITSjobs..."
Get-BitsTransfer|Remove-BitsTransfer
Write-Host"10)AttemptingtoinstalltheWindowsUpdateAgent..."
if($arch-eq64){
wusaWindows8-RT-KB2937636-x64/quiet
}
else{
wusaWindows8-RT-KB2937636-x86/quiet
}
Write-Host"11)StartingWindowsUpdateServices..."
Start-Service-NameBITS
Start-Service-Namewuauserv
Start-Service-Nameappidsvc
Start-Service-Namecryptsvc
Write-Host"12)Forcingdiscovery..."
wuauclt/resetauthorization/detectnow
Write-Host"Processcomplete.Pleaserebootyourcomputer."