⑴最近有win 版本用户在更新升级新系统的过程中,遇到错误代码提示x,这是什么情况?那要怎样才能正常升级呢?小编觉得可以通过在干净启动中来排除自己系统的问题,然后在进行相关的修复即可解决问题。
⑵x更新错误,可能与您的更新组件缺失有关。
⑶解决方法:手动注册Windows Update组件
⑷、同时按【Win+X】键,点选【Windows PowerShell(管理员】。
⑸、拷贝下方的程序码到刚打开的PowerShell里面,按回车。
⑹、忽略红字错误,重启电脑。
⑺Windows Update
⑻$arch = Get-WMIObject -Class Win_Processor -puterName LocalHost | Select-Object AddressWidth
⑼Write-Host “. Stopping Windows Update Services…”
⑽Stop-Service -Name BITS
⑾Stop-Service -Name wuauserv
⑿Stop-Service -Name appidsvc
⒀Stop-Service -Name cryptsvc
⒁Write-Host “. Remove QMGR Data file…”
⒂Remove-Item “$env:allusersprofileApplication DataMicrosoftworkDownloaderqmgr*.dat” -ErrorAction SilentlyContinue
⒃Write-Host “. Renaming the Software Distribution and CatRoot Folder…”
⒄Rename-Item $env:systemrootSoftwareDistribution SoftwareDistribution.bak -ErrorAction SilentlyContinue
⒅Rename-Item $env:systemrootSystemCatroot catroot.bak -ErrorAction SilentlyContinue
⒆Write-Host “. Removing old Windows Update log…”
⒇Remove-Item $env:systemrootWindowsUpdate.log -ErrorAction SilentlyContinue
⒈Write-Host “. Resetting the Windows Update Services to defualt settings…”
⒉“sc.exe sdset bits D:(A;;LCSWRPWPDTLOCRRC;;;SY(A;;DCLCSWRPWPDTLOCRSDRCWDWO;;;BA(A;;LCSWLOCRRC;;;AU(A;;LCSWRPWPDTLOCRRC;;;PU”
⒊“sc.exe sdset wuauserv D:(A;;LCSWRPWPDTLOCRRC;;;SY(A;;DCLCSWRPWPDTLOCRSDRCWDWO;;;BA(A;;LCSWLOCRRC;;;AU(A;;LCSWRPWPDTLOCRRC;;;PU”
⒋Set-Location $env:systemrootsystem
⒌Write-Host “. Registering some DLLs…”
⒍regsvr.exe /s atl.dll
⒎regsvr.exe /s urlmon.dll
⒏regsvr.exe /s mshtml.dll
⒐regsvr.exe /s shdocvw.dll
⒑regsvr.exe /s browseui.dll
⒒regsvr.exe /s jscript.dll
⒓regsvr.exe /s vbscript.dll
⒔regsvr.exe /s scrrun.dll
⒕regsvr.exe /s msxml.dll
⒖regsvr.exe /s msxml.dll
⒗regsvr.exe /s msxml.dll
⒘regsvr.exe /s actxprxy.dll
⒙regsvr.exe /s softpub.dll
⒚regsvr.exe /s wintrust.dll
⒛regsvr.exe /s dssenh.dll
①regsvr.exe /s rsaenh.dll
②regsvr.exe /s gpkcsp.dll
③regsvr.exe /s sbase.dll
④regsvr.exe /s slbcsp.dll
⑤regsvr.exe /s cryptdlg.dll
⑥regsvr.exe /s oleaut.dll
⑦regsvr.exe /s ole.dll
⑧regsvr.exe /s shell.dll
⑨regsvr.exe /s initpki.dll
⑩regsvr.exe /s wuapi.dll
Ⅰregsvr.exe /s wuaueng.dll
Ⅱregsvr.exe /s wuaueng.dll
Ⅲregsvr.exe /s wucltui.dll
Ⅳregsvr.exe /s wups.dll
Ⅴregsvr.exe /s wups.dll
Ⅵregsvr.exe /s wuweb.dll
Ⅶregsvr.exe /s qmgr.dll
Ⅷregsvr.exe /s qmgrprxy.dll
Ⅸregsvr.exe /s wucltux.dll
Ⅹregsvr.exe /s muweb.dll
㈠regsvr.exe /s wuwebv.dll
㈡Write-Host “ Removing WSUS client settings…”
㈢REG DELETE “HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate” /v AountDomainSid /f
㈣REG DELETE “HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate” /v PingID /f
㈤REG DELETE “HKLMSOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate” /v SusClientId /f
㈥Write-Host “ Resetting the WinSock…”
㈦sh winsock reset
㈧sh winhttp reset proxy
㈨Write-Host “ Delete all BITS jobs…”
㈩Get-BitsTransfer | Remove-BitsTransfer
Write-Host “ Attempting to install the Windows Update Agent…”
if($arch -eq {
wusa Windows-RT-KB-x /quiet
wusa Windows-RT-KB-x /quiet
Write-Host “ Starting Windows Update Services…”
Start-Service -Name BITS
Start-Service -Name wuauserv
Start-Service -Name appidsvc
Start-Service -Name cryptsvc
Write-Host “ Forcing discovery…”
wuauclt /resetauthorization /detectnow
Write-Host “Process plete. Please reboot your puter.”
运行完成后,如果还是无法解决该问题,请用户们重装系统,以彻底解决此问题。