Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save imshaiknasir/62eb9d0fd99330066c6806cb827bd989 to your computer and use it in GitHub Desktop.
Save imshaiknasir/62eb9d0fd99330066c6806cb827bd989 to your computer and use it in GitHub Desktop.
Netsh commands for resetting your network adapter in Windows

Netsh commands run in a Command Prompt with Administrative privileges


Note: This section is intended for advanced computer users. If you are not comfortable with advanced troubleshooting, ask someone for help. Follow these steps to reset the Windows Firewall, TCP/IP stack and Winsock manually. You will have to restart your system to complete the reset.


Following is a list of the Netsh commands with descriptions that you can use to reset your network adapter in Windows 10:

  1. netsh advfirewall reset Restores the Windows Firewall with Advanced Security policy to the default policy.

  2. netsh int ip reset Removes all user configured IPv4 (Internet Protocol version 4) settings.

  3. netsh int ipv6 reset Removes all user configured IPv6 (Internet Protocol version 6) settings.

  4. netsh winsock reset Resets Winsock Catalog to a clean state.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment