Network shell (Netsh) is a tool an administrator can use to configure and monitor network devices on Windows based computers at a command prompt. A common use of Netsh, is to reset the TCP/IP stack back to default settings.
But not only will Netsh reset the TCP/IP stack, but it can also completely reset your network adapter(s). It will also reset the Windows Firewall in Windows Vista too.
Using Netsh in Windows Vista
To use Netsh, you will need to open a Command Prompt as an administrator. There are two ways to do this:
- Click the Start button, then All Programs, then Accessories, then right-click Command Prompt, and then click Run as administrator. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
- Click the Start button. In the search box, type Command Prompt, and then, in the list of results, right-click Command Prompt, and then click Run as administrator. If you're prompted for an administrator password or confirmation, type the password or provide confirmation.
Netsh commands in Windows Vista
The following is a list of the Netsh commands you can use to reset your Windows Vista network adapter:
Resets interface information
netsh int reset all
Resets TCP/IP and related components to a clean state.
netsh int ip reset c:\resetlog.txt
Resets IPv6 configuration state.
netsh int ipv6 reset
Resets firewall configuration to default. Restoring the default settings will delete all Windows Firewall settings that you have changed. For example, if you have allowed certain programs through the firewall those programs will be blocked again.
netsh firewall reset
Resets Winsock Catalog to a clean state. All Winsock Layered Service Providers which were previously installed must be reinstalled. This command does not affect Winsock Name Space Provider entries.
netsh winsock reset