win10版本1903更新错误0x80004002解决方法
可能有的小伙伴就会遇到更新错误故障,并且提示代码0x80004002的情况。对于这种问题电脑维修网小编觉得可能还是因为我们系统更新过程中出现了一些损坏导致。可以使用代码进行相关修复即可。
in101903更新错误0x80004002怎么解决
1、按“Win+X”键,点选“Windos PoerShell(管理员)”。
2、然后拷贝下方的程序码到刚打开的PoerShell里面,按回车。
3、此时需要忽略红字错误,重启电脑。
4、然后运行Windos Update。
$arch = Get-WMIObject -Class Win32_Processor -ComputerName LocalHost | Select-Object AddressWidth
Write-Host "1. Sping Windos Update Services..."
S-Service -Name BITS
S-Service -Name uauserv
S-Service -Name appidsvc
S-Service -Name cryptsvc
Write-Host "2. Remove QMGR Data file..."
Remove-Item "$env:allusersprofile\Application Data\Microsoft\Netork\Donloader\qmgr.dat" -ErrorAction SilentlyContinue
Write-Host "3. Renaming the Softare Distribution and CatRoot Folder..."
Rename-Item $env:systemroot\SoftareDistribution SoftareDistribution.bak -ErrorAction SilentlyContinue
Rename-Item $env:systemroot\System32\Catroot2 catroot2.bak -ErrorAction SilentlyContinue
Write-Host "4. Removing old Windos Update log..."
Remove-Item $env:systemroot\WindosUpdate.log -ErrorAction SilentlyContinue
Write-Host "5. Resetting the Windos 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 uauserv 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 shdocv.dll
regsvr32.exe /s broseui.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 intrust.dll
regsvr32.exe /s dssenh.dll
regsvr32.exe /s rsaenh.dll
regsvr32.exe /s gpkcsp.dll
regsvr32.exe /s sbase.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 uapi.dll
regsvr32.exe /s uaueng.dll
regsvr32.exe /s uaueng1.dll
regsvr32.exe /s ucltui.dll
regsvr32.exe /s ups.dll
regsvr32.exe /s ups2.dll
regsvr32.exe /s ueb.dll
regsvr32.exe /s qmgr.dll
regsvr32.exe /s qmgrprxy.dll
regsvr32.exe /s ucltux.dll
regsvr32.exe /s mueb.dll
regsvr32.exe /s uebv.dll
Write-Host "7) Removing WSUS client settings..."
REG DELETE "HKLM\SOFTWARE\Microsoft\Windos\CurrentVersion\WindosUpdate" /v AountDomainSid /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windos\CurrentVersion\WindosUpdate" /v PingID /f
REG DELETE "HKLM\SOFTWARE\Microsoft\Windos\CurrentVersion\WindosUpdate" /v SusClientId /f
Write-Host "8) Resetting the WinSock..."
sh insock reset
sh inhttp reset proxy
Write-Host "9) Delete all BITS jobs..."
Get-BitsTransfer | Remove-BitsTransfer
Write-Host "10) Attempting to install the Windos Update Agent..."
if($arch -eq 64){
usa Windos8-RT-KB2937636-x64 /quiet
}
else{
usa Windos8-RT-KB2937636-x86 /quiet
}
Write-Host "11) Starting Windos Update Services..."
Start-Service -Name BITS
Start-Service -Name uauserv
Start-Service -Name appidsvc
Start-Service -Name cryptsvc
Write-Host "12) Forcing discovery..."
uauclt /resetauthorization /detectno
Write-Host "Process plete. Please reboot your puter."
你可能还想看 |
| hot |
ne~ |
hot |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
电脑操作系统
- 单制冷空调和冷暖空调哪个好(单制冷空调)
- 林内热水器大小如何选择 怎么修复与排查方法
- 班徽logo设计(电脑上班徽怎么设计)
- 手机usb连接电脑无法识别怎么解决(手机usb连接
- noritz热水器显示优先
- 热水器突然不烧水了 故障分析处理
- 博世热水器故障解决办法几秒钟又出现什么情况
- 12寸笔记本电脑多少厘米(12寸笔记本电脑多大
- 泡泡多洗衣机为什么漏水 怎么修复与排查方法
- 三菱空调遥控器说明书老式制冷英文(三菱空调
- 华帝燃气灶感应针工作原理 需要检查哪些故障
- 家用照片打印机哪款好(家用打印机哪款好)
- 威能锅炉如何开地暖 需要检查哪些故障
- 冰箱冷冻室抽屉坏了影响冷冻吗(冰箱冷冻抽屉
- 壁挂炉没有火花开关 怎么回事
- 热水器温度显示不全能修吗 需要检查哪些故障