【问题标题】:How do i revert these batch commands that have been run?如何恢复这些已运行的批处理命令?
【发布时间】:2021-08-24 16:58:37
【问题描述】:

我从某人那里听说这些命令会提高 Windows 10 的性能,所以我将它们放在 .bat 文件中并运行它们,但它们使情况变得更糟,如果有人知道如何恢复更改,我将不胜感激.下面的命令。

命令 1

@echo off
@echo
bcdedit /deletevalue useplatformclock
@echo
bcdedit /set disabledynamictick yes
@echo
bcdedit /set useplatformtick yes
pause

命令 2

@echo off
@echo

REG ADD HKey_Local_Machine\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ /v TcpAckFrequency /t REG_DWORD /d 0 /f

REG ADD HKey_Local_Machine\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ /v TCPNoDelay /t REG_DWORD /d 0 /f

taskkill /f /im explorer.exe

start explorer.exe

netsh int tcp set global rsc=disabled

netsh int tcp set global rss=disabled

netsh int tcp set global ecncapability=enabled

netsh int tcp set global autotuninglevel=disabled

cd\
netsh int tcp show global
netsh int tcp set global chimney=enabled
netsh int tcp set heuristics disabled
netsh int tcp set global autotuninglevel=disabled
netsh int tcp set global congestionprovider=ctcp

netsh interface ipv4 set dns name="Wi-Fi" static 1.1.1.1
netsh interface ipv4 add dns name="Wi-Fi" 1.0.0.1 index=2

@echo
@pause

【问题讨论】:

  • 恢复到什么?你知道原来的设置吗?

标签: windows batch-file tcp windows-10


【解决方案1】:

这应该重置从脚本编号 2 设置的所有值:

reg delete HKey_Local_Machine\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\TCPNoDelay
reg delete HKey_Local_Machine\System\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\TcpAckFrequency
ipconfig /flushdns
ipconfig /release
ipconfig /renew
netsh winsock reset

以管理员身份运行。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-07-29
    • 2012-06-25
    • 1970-01-01
    相关资源
    最近更新 更多