#152360 - 2005-11-28 07:21 PM
Change MTU?
|
JTestman
Fresh Scripter
Registered: 2005-11-28
Posts: 26
|
Hello.. I need assistance converting this to KiX, I’m not a programmer. I’ve looked over a few post concerning Enumerating Network Connections and I’m confused. 
http://www.kixtart.org/ubbthreads/showfl...true#Post150371
The platform is Windows 2000 Professional SP4 Heres the VB code I wish to convert.
' ----------------------------------------' ' Modify MTU values for remote sites. ' ----------------------------------------'
Option Explicit Dim strComputer, objReg, i, arrAllInterfaces, strKeyPath
Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." strKeyPath = "SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces" Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" _ & strComputer & "\root\default:StdRegProv") 'Obtain array of all interfaces. objReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrAllInterfaces For i = 0 To UBound(arrAllInterfaces) 'Create the "MTU" value entry. objReg.SetDWORDValue HKEY_LOCAL_MACHINE, strKeyPath _ & "\" & arrAllInterfaces(i), "MTU", 1400
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 756 anonymous users online.
|
|
|