PowerShell 重置Internet协议TCP / IP 修复Winsock重置目录 更新Internet连接 清除DNS解析器缓存 清除ARP缓存地址解析协议 修复Internet Explorer 11 清除Windows更新历史记录 修复Windows的自动更新 修复SSL / HTTPS

发布时间 2023-11-01 14:59:49作者: suv789

PowerShell和批处理命令:

重置Internet协议(TCP / IP):
PowerShell命令:Netsh int ip reset

批处理命令:netsh int ip reset

修复Winsock(重置目录):
PowerShell命令:Netsh winsock reset

批处理命令:netsh winsock reset

更新Internet连接:
PowerShell命令:ipconfig /renew

批处理命令:ipconfig /renew

清除DNS解析器缓存:
PowerShell命令:Clear-DnsClientCache

批处理命令:ipconfig /flushdns

清除ARP缓存(地址解析协议):
PowerShell命令和批处理命令:arp -d *

修复Internet Explorer 11:
PowerShell命令和批处理命令:Start-Process "iexplore.exe" -ArgumentList "-extoff"

清除Windows更新历史记录:
PowerShell命令:Clear-WindowsUpdate

批处理命令:net stop wuauserv && rd /s /q %systemroot%\SoftwareDistribution && net start wuauserv

修复Windows的自动更新:
PowerShell命令:Install-Module PSWindowsUpdate | Import-Module; Get-WindowsUpdate; Install-WindowsUpdate

批处理命令:wuauclt /detectnow

修复SSL / HTTPS /密码学:
PowerShell命令:Update-HostsFile

批处理命令:certutil -generateSSTFromWU roots.sst && certutil -addstore -f root roots.sst && del /q roots.sst

重置代理服务器配置:
PowerShell命令:netsh winhttp reset proxy

批处理命令:netsh winhttp reset proxy

重置Windows防火墙配置:
PowerShell命令:netsh advfirewall reset

批处理命令:netsh advfirewall reset

恢复默认的hosts文件:
PowerShell命令和批处理命令:Copy-Item -Path "$env:windir\System32\drivers\etc\hosts.original" -Destination "$env:windir\System32\drivers\etc\hosts" -Force

更新WINS客户端注册:
PowerShell命令和批处理命令:nbtstat -RR

在文件资源管理器中使网络计算机可见:
PowerShell命令和批处理命令:Get-NetConnectionProfile | Set-NetConnectionProfile -NetworkCategory Private