win10系统更新错误0x8007042B

 我来答
瑞评科技观
2023-07-12 · 百度认证:北京瑞评互动科技官方账号
瑞评科技观
向TA提问
展开全部

对win10系统准备升级更新的时候,有的小伙伴们可能遇到提示出错0x8007042B,对于这种问题小编觉得可能是因为我们系统更新的时候出现了一些问题,可以在指定的系统运行DiagPackage.diagpkg程序即可,来看看详细操作吧。
win10系统更新错误0x8007042B:
方法一:
1、首先按下快捷键“ctrl+alt+del打开任务管理器。
2、然后找到其中的恶意程序,右击选择“结束任务”。
3、然后再次尝试win10系统的更新即可。
方法二:
1、可到以下途径,尝试运行“DiagPackage.diagpkg
C:\Windows\diagnostics\system\WindowsUpdate\DiagPackage.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:allusersprofile\ApplicationData\Microsoft\Network\Downloader\qmgr*.dat"-ErrorActionSilentlyContinue
Write-Host"3.RenamingtheSoftwareDistributionandCatRootFolder..."
Rename-Item$env:systemroot\SoftwareDistributionSoftwareDistribution.bak-ErrorActionSilentlyContinue
Rename-Item$env:systemroot\System32\Catroot2catroot2.bak-ErrorActionSilentlyContinue
Write-Host"4.RemovingoldWindowsUpdatelog..."
Remove-Item$env:systemroot\WindowsUpdate.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:systemroot\system32
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"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate"/vAccountDomainSid/f
REGDELETE"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate"/vPingID/f
REGDELETE"HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate"/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."
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式