Thursday, August 18, 2011
Set Windows Network Settings From The Command Line Using Net Shell (netsh.exe)
If you are changing network settings repeatedly on a test system it gets old having to point and click each time. Net Shell (netsh.exe) can be called as follows from the command line:
netsh interface ipv4 set address name="Local Area Connection" dhcp HOST_IP
SUBNETMASK GATEWAY_IP
For example:
netsh interface ipv4 set address name="Local Area Connection" 10.0.0.2
255.255.255.0 10.0.0.1
Typing this over and over will get old as well so you can make a simple batch file called
ip.bat containing:
netsh interface ipv4 set address name="Local Area Connection" %1 %2 %3 %4
Now you can type:
ip [dhcp | static] HOST_IP SUBNETMASK GATEWAY_IP
For example:
ip dhcp 10.0.0.2 255.255.255.0 10.0.0.1
Of course you can just create individual batch files for each test scenario.
Subscribe to:
Post Comments (Atom)
Company needs to be each part of daily business marketing and web design and also act as a good marketing campaign device once the period is appropriate.
ReplyDeleteThey initially focused on the UX and redesigning the features and functionality. Since then, they’ve moved into the UI and the look and feel.
ReplyDeletebranding companies
They integrate seamlessly with the internal team's terminology and approach.
ReplyDeleteUI UX design agency
They were professional agency apps and able to work independently when needed
ReplyDeleteThey have proven to be one of the most reliable technology partners.
ReplyDeletebranding and marketing agency
Their team provided transformative design ideas and actualized their concepts with impeccable code.
ReplyDeletebranding companies SF
I’m eager to find the valuable information and for me this is the right place to get the good stuff.
ReplyDeletewebsite design studios
An unbelievable blog. This blog will indisputably be definitely recommended to my friends as well.
ReplyDeletebest logo design company
I truly appreciate your working guys, thumbs up!!
ReplyDeletetop webdesign companies
Totally unique stuff is here really amazing!!!
ReplyDeletebest UX agencies
Your articles are very well written and unique.
ReplyDeleteproduct designing companies