Technology Get the latest on technology, electronics and software…

programmatically changing windows network adapter binding order

Thread Tools
 
Old Jun 10, 2005 | 09:21 PM
  #1  
Ruski's Avatar
Thread Starter
Three Wheelin'
 
Joined: May 2001
Posts: 1,377
Likes: 0
programmatically changing windows network adapter binding order

I am trying to find a way to programmatically change network adapter binding order in Windows 2003 Server. Is it possible?
Reply
Old Jun 10, 2005 | 09:26 PM
  #2  
zeroday's Avatar
Race Director
 
Joined: Dec 2001
Posts: 17,921
Likes: 15
why?
Reply
Old Jun 10, 2005 | 09:31 PM
  #3  
Ruski's Avatar
Thread Starter
Three Wheelin'
 
Joined: May 2001
Posts: 1,377
Likes: 0
I need to deploy a lot of Proliant DL380 clusters in a short amount of time using Sysprep.

One thing that Sysprep doesn't help with is the binding order. Each DL380 node has multiple NICs. Two NICs will be teamed and a public IP will be assigned to them. The third NIC will be for cluster heartbeat. I want to make sure that the virtual team NIC is at the top of the binding order. Sysprep doesn't understand stuff like this - when I build the OS from an image and Sysprep completes its mini-setup, the NICs are rediscovered fresh.
Reply
Old Jun 10, 2005 | 09:56 PM
  #4  
Malayalee King's Avatar
ഥഎണഡഏ Fellas Inc.
iTrader: (1)
 
Joined: Nov 2002
Posts: 4,823
Likes: 8
From: $,{MD,CA}
Could you run a script that changed the binding order after sysprep install?
Reply
Old Jun 11, 2005 | 12:03 PM
  #5  
Ruski's Avatar
Thread Starter
Three Wheelin'
 
Joined: May 2001
Posts: 1,377
Likes: 0
Originally Posted by Malayalee King
Could you run a script that changed the binding order after sysprep install?


well, that's what I am trying to find - a script to change the bindings
Reply
Old Jun 11, 2005 | 12:43 PM
  #6  
Beelzebub's Avatar
Race Director
20 Year Member
Photogenic
Liked
Loved
 
Joined: Jan 2003
Posts: 10,928
Likes: 1,051
From: Long Island, NY
I had tried this.

The damn thing is in the registry and the bindings are generated with a 60 character SID and it is unique on every sysprep so you cannot do it. I worked on it for 2 months as I have the same situation. Deploying syspreped images to 100 machines and was trying to name the interfaces Public and Private, but it ended up being faster just booting the machine and doing it for every interface.
Reply
Old Jun 11, 2005 | 01:06 PM
  #7  
Beelzebub's Avatar
Race Director
20 Year Member
Photogenic
Liked
Loved
 
Joined: Jan 2003
Posts: 10,928
Likes: 1,051
From: Long Island, NY
After looking at it again, you might be able to do it with a vb script and editing the registry.

You will first have to find the key that is the "Local Ethernet Adapter"
Something like this

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Ne twork\{4D36E972-E325-11CE-BFC1-08002BE10318}\{E8482428-2D9B-4A58-B9B5-402B8321249D}\Connection\Name

Then you will need to change the parameters for the {4D36...} in the tcp section

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\{E8482428-2D9B-4A58-B9B5-402B8321249D}

It is a pain in the ass but now I see it can be done.
Reply
Old Jun 11, 2005 | 03:35 PM
  #8  
Malayalee King's Avatar
ഥഎണഡഏ Fellas Inc.
iTrader: (1)
 
Joined: Nov 2002
Posts: 4,823
Likes: 8
From: $,{MD,CA}
I'm not sure if you're a programmer or not, but I am.

I keep forgetting why I look for the answer in a script anymore (sometimes)..

MSDN

Run exe after install, perhaps?

Good luck!
Reply
Old Jun 11, 2005 | 11:23 PM
  #9  
Ruski's Avatar
Thread Starter
Three Wheelin'
 
Joined: May 2001
Posts: 1,377
Likes: 0
Originally Posted by Beelzebub
After looking at it again, you might be able to do it with a vb script and editing the registry.

You will first have to find the key that is the "Local Ethernet Adapter"
Something like this

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Ne twork\{4D36E972-E325-11CE-BFC1-08002BE10318}\{E8482428-2D9B-4A58-B9B5-402B8321249D}\Connection\Name

Then you will need to change the parameters for the {4D36...} in the tcp section

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\{E8482428-2D9B-4A58-B9B5-402B8321249D}

It is a pain in the ass but now I see it can be done.

Thanks. Yeah, I took a look there too... I am afraid that there are more places other than Services/Tcpip that would need to be changed too...
Reply
Old Jun 11, 2005 | 11:24 PM
  #10  
Ruski's Avatar
Thread Starter
Three Wheelin'
 
Joined: May 2001
Posts: 1,377
Likes: 0
Originally Posted by Malayalee King
I'm not sure if you're a programmer or not, but I am.

I keep forgetting why I look for the answer in a script anymore (sometimes)..

MSDN

Run exe after install, perhaps?

Good luck!

This looks promising... now I have to rewind my brain 15 years back when I was doing C programming
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
peti1212
ILX
22
Jan 5, 2022 05:14 PM
Yumcha
Automotive News
9
Feb 25, 2020 09:57 AM
cycdaniel
1G TSX Performance Parts & Modifications
8
Dec 17, 2019 10:58 AM
spoiler900
5G TLX Photograph Gallery
11
Sep 11, 2015 09:39 PM
Aleax
3G TL Problems & Fixes
2
Sep 11, 2015 11:31 AM




All times are GMT -5. The time now is 11:25 AM.