Scripting: Changing MTU Size for a specific adapter.

Scripting: Changing MTU Size for a specific adapter.

Post by QW5kcmV3IE » Tue, 17 Oct 2006 10:18:02



Hi there,

Precisely my problem I'm afraid! I had vague thoughts of getting adapter
information (whether that was from a vbscript or even the returned contents
of "ipconfig /all" and doing some string manipulation to create a .reg
file... but that's very messy and error prone, hence my thought that maybe
there's an easier way!

Thanks for the reply tho.
 
 
 

Scripting: Changing MTU Size for a specific adapter.

Post by QW5kcmV3IE » Tue, 17 Oct 2006 10:19:02


Hi there,

Precisely my problem I'm afraid! I had vague thoughts of getting adapter
information (whether that was from a vbscript or even the returned contents
of "ipconfig /all" and doing some string manipulation to create a .reg
file... but that's very messy and error prone, hence my thought that maybe
there's an easier way!

Thanks for the reply tho.

 
 
 

Scripting: Changing MTU Size for a specific adapter.

Post by QW5kcmV3IE » Thu, 19 Oct 2006 16:34:01


Just on the off chance that anyone is interested in this one, I was able to
change the MTU on the specific adapter. In the end I wrote a program in VB
which would do an "ipconfig /all" and take the info, search thru for a start
and end tag in the string based on the adapter name and strip out the unique
identifier string.

Taking this string I then inserted a reg key via an inbuilt VB function. The
good part was that I can have a textbox allowing any MTU size as specified by
the user (good for testing).

Anyway it works! :)
 
 
 

Scripting: Changing MTU Size for a specific adapter.

Post by Alec S » Thu, 19 Oct 2006 23:05:17


Nice. I thought you would have to resort to something like that because no matter where I searched, I was unable to find any other
connection between the GUID and the adapter name; it seems that a brute-force reg search is the only way.

Glad you worked it out.

--
Alec S.
news/alec->synetech/cjb/net
 
 
 

Scripting: Changing MTU Size for a specific adapter.

Post by V Gree » Fri, 20 Oct 2006 11:07:02

Good strategy.

And possibly useful for other similar situations.

Thx., for letting us know how you solved it.



to
start
unique
The
by

contents
maybe

probably will


specific
on
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interf
Adapter"
this:
http://www.yqcomputer.com/