WindowsFixes has moved to The Tech Corner! Redirecting...

You should be automatically redirected. If not, visit http://thetechcorner.net/ and update your bookmarks!

James Hartig's Personal Blog | TwitterTrend

If this site helped you, or you have a problem, leave a comment or email me! Also, don't hesitate to refer other people and put a link on your site.

Friday, September 5, 2008

The full potential of netsh.

I have not been around much to have been posting some new errors. I have received many emails over the past few weeks and I have been trying to reply (usually in under an hour) and get everyone's problems fixed. Remember you can email me at:


Now time to move on to: Netsh.

Netsh is a command-line based tool that can be used to locally or remotely administer a computer. I recently stumbled upon it when I was searching for a way to set DNS servers via the command-line. Various "things" you can do with Netsh will be shown below:

Set IP Address/Subnet/Gateway
netsh interface ip set address "<name of connection>" static <ip address> <subnet> <default gateway>

Set DNS Server(s)
netsh int ip set dns "<name of connection>" static <ip address> primary
To Set More DNS Servers:
netsh int ip add dns "<name of connection>" <ip address>

Set Connection To DHCP
netsh interface ip set address "<name of connection>" dhcp

Set WINS Server(s)
netsh interface ip set wins "<name of connection>" static <ip address>
To Set More WINS Servers:
netsh interface ip add wins "<name of connection>" <ip address>

Those are just some basic examples. I hope that you can benefit from this command as much as I recently have been able to!

-James Hartig

No comments: