Last active
June 24, 2023 13:29
-
-
Save woq/86af72dc5084ca6263bf9ceb45c41649 to your computer and use it in GitHub Desktop.
Network Rest Windows CMD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
netsh winsock reset | |
ipconfig/flushdns | |
netsh int ip reset | |
echo. | |
@echo #127.0.0.1 localhost > %SystemRoot%\System32\drivers\etc\hosts | |
echo. | |
netsh interface ip set address name="WLAN" dhcp | |
netsh interface ip set dns name="WLAN" dhcp | |
netsh interface ip set address name="Ethernet" dhcp | |
netsh interface ip set dns name="Ethernet" dhcp | |
echo. | |
shutdown -r -t 60 | |
goto end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment