IT袋

当前位置:主页 > 经验教程 > 系统教程 >

win101903更新错误0x80004002怎么解决

win 10更新0x80004005错误 win101903更新错误0x80004002怎么解决

更新:2023-07-13 14:48:08 来源:IT袋 作者:马勇
导读:win101903更新错误0x80004002怎么解决,为关注IT袋网的网友们详解win101903更新错误0x80004002怎么解决的介绍,关于 win101903更新错误0x80004002怎么解决,下面小编为您详细解答 如果我们的电脑使用的是win101903版本的

win101903更新错误0x80004002怎么解决

为关注IT袋网的网友们详解win101903更新错误0x80004002怎么解决的介绍,关于 win101903更新错误0x80004002怎么解决,下面小编为您详细解答

如果我们的电脑使用的是win101903版本的系统,那么想要对目前系统进行升级更新的话,可能部分IT袋的朋友就会遇到更新错误故障,并且提示代码0x80004002的情况。对于这种问题小编觉得可能还是因为我们系统更新过程中出现了一些损坏导致。可以使用代码进行相关修复即可。详细步骤就来看下小编是怎么做的吧~

win101903更新错误0x80004002怎么解决

win101903更新错误0x80004002怎么解决

1. 同时按【Win+X】键,点选【Windows PowerShell(管理员)】

2. 拷贝下方的程序码到刚打开的PowerShell里面,按回车

3. 忽略红字错误,重启电脑

4. 运行Windows Update

win101903更新错误0x80004002怎么解决

$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

相关阅读