网卡修复程序执行出现0x80004005错误代码问题解决

本文最后更新于:2024年4月22日 凌晨

1、初步修复指令

参考:https://baijiahao.baidu.com/s?id=1715556202388908891&wfr=spider&for=pc

以管理员身份运行:

1
2
3
regsvr32 softpub.dll
regsvr32 wintrust.dll
regsvr32 initpki.dll

2、regsvr32 initpki.dll执行报错问题解决

参考:https://blog.csdn.net/qq_41943240/article/details/115220254

执行以下命令:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
$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."

image-20221212104125540

image-20221212104125540

image-20221212104112299

直接补齐对应dll文件:

参考:http://www.dllzj.com/initpki.dll/

1
2
3
# 拷贝到一下文件夹
C:\Windows\SysWOW64
C:\Windows\System32

3、换个方法–清除网卡旧配置

1
2
3
# 重置网卡
netsh winsock reset catalog
netsh int ip reset reset.log

重启系统后检查网卡配置,恢复为默认状态:

image-20221212120334898

删除对应子项注册表:

image-20221212140333170

4、诊断服务开启

win+r打开运行窗口,运行services.msc,进入服务面板,检查以下项是否开启:

image-20221212122316122

5、网卡驱动重置

win+r打开运行窗口,输入devmgmt.msc,进入设备管理器。

image-20221212122508987

网络适配器,卸载对应设备:

image-20221212122532652

之后重新连接网卡即可:

image-20221212140525730

6、参考方法

https://zhidao.baidu.com/question/2148256226206548268.html

https://wenku.baidu.com/view/a1cbed5fbb4ae45c3b3567ec102de2bd9705de5d.html?_wkts_=1670816062878&bdQuery=%E7%BD%91%E5%8D%A1%E9%85%8D%E7%BD%AE%E7%9A%84%E5%86%85%E5%AE%B9%E6%B8%85%E9%99%A4

https://www.zizhi888.cn/itbaike/31328.html

http://t.zoukankan.com/fulse-p-6276858.html


网卡修复程序执行出现0x80004005错误代码问题解决
http://www.codestar.top/2023/11/07/Windows/网卡修复程序执行出现0x80004005错误代码问题解决/
作者
mini小新
发布于
2023年11月7日
更新于
2024年4月22日
许可协议