win10版本1903更新错误0x80004002的解决方法
时间:2022-01-26 08:25:56
如果我们的电脑使用的是win101903版本的系统,那么想要对目前系统进行升级更新的话,可能有的小伙伴就会遇到更新错误故障,并且提示代码0x80004002的情况。对于这种问题小编觉得可能还是因为我们系统更新过程中出现了一些损坏导致。可以使用代码进行相关修复即可。详细步骤就来看下小编是怎么做的吧~
win101903更新错误0x80004002怎么解决
1. 同时按【Win+X】键,点选【Windows PowerShell(管理员)】
2. 拷贝下方的程序码到刚打开的PowerShell里面,按回车
3. 忽略红字错误,重启电脑
4. 运行Windows Update
$arch = Get-WMIObject -Class Win32_Processor -ComputerName LocalHost | Select-Object AddressWidth
Write-Host "1. Stopping Windows Update Services..."
Stop-Service -Name BITS
Stop-Service -Name wuauserv
Stop-Service -Name appidsvc
Stop-Service -Name cryptsvc
Write-Host "2. Remove QMGR Data file..."
Remove-Item "$env:allusersprofileApplication DataMicrosoftNetworkDownloaderqmgr*.dat" -ErrorAction SilentlyContinue
Write-Host "3. Renaming the Software Distribution and CatRoot Folder..."
Rename-Item $env:systemrootSoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue
Rename-Item $env:systemrootSystem32Catroot2 catroot2.bak -ErrorAction SilentlyContinue
Write-Host "4. Removing old Windows Update log..."
Remove-Item $env:systemrootWindowsUpdate.log -ErrorAction SilentlyContinue
Write-Host "5. Resetting the Windows Update Services to defualt settings..."
"sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"
"sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)"
Set-Location $env:systemrootsystem32
Write-Host "6. Registering some DLLs..."
regsvr32.exe /s atl.dll
regsvr32.exe /s urlmon.dll
regsvr32.exe /s mshtml.dll
regsvr32.exe /s shdocvw.dll
regsvr32.exe /s browseui.dll
regsvr32.exe /s jscript.dll
regsvr32.exe /s vbscript.dll
regsvr32.exe /s scrrun.dll
regsvr32.exe /s msxml.dll
regsvr32.exe /s msxml3.dll
regsvr32.exe /s msxml6.dll
regsvr32.exe /s actxprxy.dll
regsvr32.exe /s softpub.dll
regsvr32.exe /s wintrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sccbase.dll
regsvr32.exe /s slbcsp.dll
regsvr32.exe /s cryptdlg.dll
regsvr32.exe /s oleaut32.dll
regsvr32.exe /s ole32.dll
regsvr32.exe /s shell32.dll
regsvr32.exe /s initpki.dll
regsvr32.exe /s wuapi.dll
regsvr32.exe /s wuaueng.dll
regsvr32.exe /s wuaueng1.dll
regsvr32.exe /s wucltui.dll
regsvr32.exe /s wups.dll
regsvr32.exe /s wups2.dll
regsvr32.exe /s wuweb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s wucltux.dll
regsvr32.exe /s muweb.dll
regsvr32.exe /s wuwebv.dll
Write-Host "7) Removing WSUS client settings..."
REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v AccountDomainSid /f
REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v PingID /f
REG DELETE "HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate" /v SusClientId /f
Write-Host "8) Resetting the WinSock..."
netsh winsock reset
netsh winhttp reset proxy
Write-Host "9) Delete all BITS jobs..."
Get-BitsTransfer | Remove-BitsTransfer
Write-Host "10) Attempting to install the Windows Update Agent..."
if($arch -eq 64){
wusa Windows8-RT-KB2937636-x64 /quiet
}
else{
wusa Windows8-RT-KB2937636-x86 /quiet
}
Write-Host "11) Starting Windows Update Services..."
Start-Service -Name BITS
Start-Service -Name wuauserv
Start-Service -Name appidsvc
Start-Service -Name cryptsvc
Write-Host "12) Forcing discovery..."
wuauclt /resetauthorization /detectnow
Write-Host "Process complete. Please reboot your computer."
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
wps文字中如何添加特殊标点符号
Vscode如何关闭集成内部it环境?
![](https://img.aspxhome.com/file/2023/30/a268810_0s.png)
Win10如何快速整理桌面图标?
![](https://img.aspxhome.com/file/2023/1/a282910_0s.jpg)
Win10更新1709版本提示错误代码0x80073712的解决方法
![](https://img.aspxhome.com/file/2023/2/a291901_0s.jpg)
如何在wps中去除模板中的文字
怎么样word2003文本框中打勾
![](https://img.aspxhome.com/file/2023/8/18728_0s.jpg)
如何禁用、隐藏、显示Windows11上的小部件菜单?
![](https://img.aspxhome.com/file/2023/27/a238293_0s.jpg)
Win11雷电模拟器打不开怎么办 Win11雷电模拟器打不开解决方法
![](https://img.aspxhome.com/file/2023/27/a235884_0s.jpg)
excel如何巧用柱状图
![](https://img.aspxhome.com/file/2023/3/a154173_0s.jpg)
电脑版WPS演示文稿怎么设置切换时有声音
![](https://img.aspxhome.com/file/2023/6/a183226_0s.png)
如何在wps文字分栏中添加页码
win10主题图片存放位置在哪里?win10主题图片存放位置查找方法
![](https://img.aspxhome.com/file/2023/27/a238917_0s.jpg)
电脑wps文档怎么插入化学绘图
![](https://img.aspxhome.com/file/2023/2/a184222_0s.jpg)
电脑记事本乱码怎么办?Win7记事本乱码的修复方法
![](https://img.aspxhome.com/file/2023/27/a231329_0s.jpg)
系统之家u盘重装系统win7旗舰版的方法步骤教程
![](https://img.aspxhome.com/file/2023/2/a287036_0s.jpg)
番茄花园win10旗舰版系统在哪下载
![](https://img.aspxhome.com/file/2023/3/48223_0s.jpg)
win7系统怎么设置定时自动关机呢?
![](https://img.aspxhome.com/file/2023/28/a244689_0s.jpg)
如何用WORD制作毛笔描红的米字格?
Word文档中文字效果设置
![](https://img.aspxhome.com/file/2023/0/34320_0s.gif)
相机错误0xa00f4244无法使用怎么办?
![](https://img.aspxhome.com/file/2023/30/a264591_0s.jpg)