Adding MTU registry entry to several desktop PC's

I need to add the MTU registry entry to 300+ desktop PC's and am looking to do this without visiting each workstation.  The MTU reg entry is located at:  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\[Interface ID]\

I know how to add the value to individual machines, my question is, can I add the MTU value via a logon script?  The first obstacle is that the Interface ID's will not be the same on each PC.  Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do it through WMI Scripting. Here is an example which does it on the machine where it is run;

On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")

Just save it in a file with .vbs extension and double click will set the MTU on that machine to 68.

What you can do it is to include this as a logon script and run once for all the machines.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CMCONEAuthor Commented:
Will this script set the MTU value only if MTU is already a valid key?  MTU is not currently a key listed on these systems.  Also, if a machine has more than one network adapter, will this script add the MTU key for all adapters (interface id's)?
Yes to both. It should. Why don't you try it on a machine?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.