win10版本1903更新错误0x80004002解决方法
可能有的小伙伴就会遇到更新错误故障,并且提示代码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:allusersprofile\Application Data\Microsoft\Network\Downloader\qmgr*.dat" -ErrorAction SilentlyContinue
Write-Host "3. Renaming the Software Distribution and CatRoot Folder..."
Rename-Item $env:systemroot\SoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue
Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue
Write-Host "4. Removing old Windows Update log..."
Remove-Item $env:systemroot\WindowsUpdate.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:systemroot\system32
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 "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v AccountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate" /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."
你可能还想看:怎么关闭防火墙 | 定位服务怎么关闭
系统下载排行榜71011xp
萝卜家园Win7 sp1 64位旗舰版 V2021.05
2系统之家Win7 64位纯净版ISO镜像下载V2024
3【系统之家】Windows7 SP1 64位 全补丁旗舰版
4【低配首选】深度技术 Ghost Win7 SP1 32位 旗舰精简版
5深度纯净版win7旗舰版镜像(支持USB3.0)
6深度Ghost Win7纯净版(新机型新技术)镜像V2024
7Win7系统 64位旗舰版(新机型+深度优化) V2024
8深度技术 Win7 64位精品旗舰版(带USB3.0/3.1驱动,新电脑) V2024
9系统之家 Ghost Win7 极限精简版 V2024
10系统之家Win7系统64位旗舰版(专业优化+新机型USB3.0支持)
【系统之家】Windows10 22H2 64位 游戏优化版
2【干净不带软件】Windows10 22H2 64位 纯净专业版
3【深度技术】Windows10 64位 专业精简版
4【高性能系统】Windows10 22H2 64位 纯净专业工作站版
5【适合家庭/个人】Windows10 22H2 64位 家庭中文版
6【系统之家】Windows10 22H2 64位 专业工作站版
【专业人士首选】Windows11 22H2 64位 专业工作站版
2【娱乐专属】Windows11 22H2 64位 电竞游戏版
3不忘初心Win11 22H2 X64无更新纯净精简版 V2023
4系统之家Ghost Win11中文专业版 V2023
5系统之家Win11纯净版精简镜像
6Win11 22H2(22621.819) 11月更新 V2022
7戴尔笔记本 Win11 64位 最新正式版 V2023
8系统之家 Ghost Win11 64位 精简纯净版 V2023
9Windows11 64位专业版ISO官方原版镜像 V2023
10Windows 11 22H2 22623.1020 Beta更新版 V2022
番茄花园Ghost XP Sp3纯净版 V2021.08
2系统之家Ghost WinXP SP3专业版 V2021.10
3深度技术Windows XP SP3 经典专业版 V2021.06
4电脑公司 Windows XP 经典版 V2021.04
5风林火山WindowsXP Sp3专业版 V2022.01
6番茄花园WindowsXP Sp3专业版 V2021.06
7萝卜家园 Windows Sp3 XP 经典版 V2021.04
8技术员联盟WindowsXP Sp3专业版 V2021.05
9萝卜家园WindowsXP Sp3专业版 V2021.05
10技术员联盟 Ghost WinXP SP3 精简版 V2021.12
热门教程 更多+
U盘装Win10显示:Windows无法打开所需的文件F:\sources\install.wim怎么办?
2Win11开机自动安装垃圾软件怎么办?Win11阻止流氓软件自动安装教程
3装Win10系统用磁盘分区类型选mbr好还是GUID分区格式好?
4Win10提示你的设备中缺少重要的安全和质量修复的解决方法
5Win11开机一直转圈怎么办 Win11开机一直转圈的解决办法
6Win10原版镜像怎么用PE安装 PE安装Win10原版镜像教程
7Win10系统的C盘如何扩大?Win10系统的C盘扩大的方法
8Win10专业版升级Win11正式版图文教程
9重装完Win10系统显示器不满屏怎么办?Win10桌面不难满屏解决方法
10Win10微软商店怎么安装不了软件?Win10微软商店无法安装软件解决方法
装机必备 更多+
重装教程 更多+
电脑教程专题 更多+