我如何恢复这些已 运行 的批处理命令?
How do i revert these batch commands that have been run?
我从某人那里听说这些命令会提高 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
这应该重置脚本编号 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
运行 作为管理员。
我从某人那里听说这些命令会提高 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
这应该重置脚本编号 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
运行 作为管理员。