Skip to content

Instantly share code, notes, and snippets.

@woq
Last active June 24, 2023 13:29
Show Gist options
  • Save woq/86af72dc5084ca6263bf9ceb45c41649 to your computer and use it in GitHub Desktop.
Save woq/86af72dc5084ca6263bf9ceb45c41649 to your computer and use it in GitHub Desktop.
Network Rest Windows CMD
@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