?
Solved

Adding MTU registry entry to several desktop PC's

Posted on 2006-04-17
5
Medium Priority
?
469 Views
Last Modified: 2008-01-09
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?
0
Comment
Question by:CMCONE
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
rsivanandan earned 2000 total points
ID: 16471591
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")
objNetworkSettings.SetMTU(68)
      

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.

Cheers,
Rajesh
0
 
LVL 1

Author Comment

by:CMCONE
ID: 16472116
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)?
0
 
LVL 32

Expert Comment

by:rsivanandan
ID: 16472458
Yes to both. It should. Why don't you try it on a machine?

Cheers,
Rajesh
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If your system is showing symptoms of browser hijacks or 'google search redirects' check out my other article (http://rdsrc.us/u3GP7A) first and run the tool TDSSKiller (http://rdsrc.us/GDBBs4) to get rid of the infection. Once done, and if the …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Screencast - Getting to Know the Pipeline
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question