Skip to content

Instantly share code, notes, and snippets.

@wellington1993
Created November 8, 2018 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellington1993/c6d8476179940b4b48cac556f1ee3622 to your computer and use it in GitHub Desktop.
Save wellington1993/c6d8476179940b4b48cac556f1ee3622 to your computer and use it in GitHub Desktop.
Reset network Windows
@echo on
rem https://www.hanselman.com/blog/TheNuclearOptionResettingTheCrapOutOfYourNetworkAdaptersInVista.aspx
rem https://www.geeksinphoenix.com/blog/post/2015/06/16/how-to-reset-your-network-adapter-in-windows-10.aspx
rem Reset everything
ipconfig /release
ipconfig /renew
ipconfig /flushdns
nbtstat -R
nbtstat -RR
netsh int ipv4 reset
netsh int ipv6 reset
netsh int reset all
netsh winsock reset
netsh winsock reset all
netsh int ip reset
netsh int ip reset all
netsh firewall reset
netsh firewall reset all
rem Enble and disable firewall
net start "Windows Firewall"
netsh advfirewall reset
netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes
netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes
netsh advfirewall set currentprofile state on
netsh advfirewall set allprofiles state off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment