Table of Contents What’s Netsh?How to check the connection and opened portHow to configure the TCP/IP protocolHow to configure Wireless using netshHow to export and import network configuration to a file (like informed in my last post)
Netsh is a command-line scripting utility that allows you modify or script the network configuration. You can add, remove, change, import and export general configuration.
netsh -c diag netsh diag>connect iphost wilde.net 80 Result: IPHost (wilde.net) IPHost = wilde.net Port = 80 Server appears to be running on port(s) [80]
The following command configures the interface named intranet with the static IP address 10.0.0.2, the subnet mask of 255.255.255.0, and a default gateway of 10.0.0.1:
netsh interface ip set address name=”intranet” source=static addr=10.0.0.2 mask=255.255.255.0 gateway=10.0.0.1
To configure an defined wireless network, use this command netsh wlan connect ssid=”mySSID” name=”WLAN-wilde”
To show your current wireless settings, use this command netsh wlan show settings
To add an already exported wireless network profile, use this command netsh wlan add profile filename=”Wireless Network Connection-BOW.xml”
To export your configuration, just do netsh –c interface dump > test.txt When you import this configuration, use this command netsh exec test.txt This article was originally written by: João Ricardo Wilde Neto MCTS, MCITP, MCDST, MCT Please note that English is my second language. I am trying my best here, but just in case you read an odd sounding sentence every now and then, I hope you will pardon me.
João Ricardo Wilde Neto edited Revision 2. Comment: Repair netsh exec line
João Ricardo Wilde Neto edited Revision 1. Comment: Repair Wrong Tags