RE: Script to change Network Adapters Binding

2010-09-10 Thread Michael B. Smith
The blog post is about changing network binding order.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Linkage
Bind -- reg_multi_sz

The Bind registry value contains a list of devices and that list is the 
registry binding order. That list looks something like the below (taken off my 
Server 2008 R2 server):

\Device\{17333B2B-417A-4067-AC98-B7EB24FCB339}
\Device\{23A51D9E-9FFA-4F32-8F67-B9C4B61E2FAD}
\Device\{9638CAB0-CFC8-433F-B189-099B0518F380}
\Device\{A25EC12E-404C-4234-A4F9-18D9D8BAD79C}
\Device\{E7B7845A-A963-4085-8B4E-276F6D19A74B}
\Device\{D887DA91-0415-470E-AAD9-CACB2319BC87}
\Device\{4034AA4F-1E2D-4F84-A244-D94355DC2BD8}
\Device\{F41AB86C-A9BC-4513-9303-075EF4F77E03}
\Device\{EAFA97BD-3969-48A0-9421-5ECB81C1BB18}

You have to take the GUIDs and look them up to find the device names. That 
information is at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\\Connection
Name -- reg_sz

Which easily lets me figure out:

\Device\{17333B2B-417A-4067-AC98-B7EB24FCB339} -> Local Area Connection* 9
\Device\{23A51D9E-9FFA-4F32-8F67-B9C4B61E2FAD} -> Local Area Connection 7
\Device\{9638CAB0-CFC8-433F-B189-099B0518F380} -> Local Area Connection 6
\Device\{A25EC12E-404C-4234-A4F9-18D9D8BAD79C} -> Local Area Connection 3
\Device\{E7B7845A-A963-4085-8B4E-276F6D19A74B} -> Local Area Connection 5
\Device\{D887DA91-0415-470E-AAD9-CACB2319BC87} -> Local Area Connection 4
\Device\{4034AA4F-1E2D-4F84-A244-D94355DC2BD8} -> Local Area Connection 2
\Device\{F41AB86C-A9BC-4513-9303-075EF4F77E03} -> Local Area Connection
\Device\{EAFA97BD-3969-48A0-9421-5ECB81C1BB18} -> Wireless Network Connection

Which is exactly the binding order shown in Advanced network properties on my 
computer.

If you want a different binding order, then re-write the array in the order you 
want it. That's what the blog post does.

Here is another way to get done what you want: 
http://code.msdn.microsoft.com/nvspbind

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Haritwal, Dhiraj [mailto:dhiraj.harit...@ap.sony.com]
Sent: Friday, September 10, 2010 7:54 AM
To: NT System Admin Issues
Subject: RE: Script to change Network Adapters Binding

Thanks Michael, I have already saw these posts. Does anybody tried this with 
these articles. Sorry, I don't have C++ programming skills.

Set_Wireless_NIC_IPMetric.vbs I have tried but it's not changing Binding order.

http://blogs.technet.com/b/brucecowper/archive/2005/03/28/403043.aspx

above post also not changing Network Adapter binding order.



Dhiraj



From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Friday, September 10, 2010 4:46 PM
To: NT System Admin Issues
Subject: RE: Script to change Network Adapters Binding

This KB describes the available interfaces: 
http://support.microsoft.com/kb/894564/en-us

If you don't mind writing a little C++ (or P/Invoking some C#), here is the API 
interface:

http://msdn.microsoft.com/en-us/library/ff547694.aspx

This blog post should help you understand how the binding order is built from 
the registry and how to modify it there:

http://blogs.technet.com/b/brucecowper/archive/2005/03/28/403043.aspx

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Haritwal, Dhiraj [mailto:dhiraj.harit...@ap.sony.com]
Sent: Friday, September 10, 2010 5:06 AM
To: NT System Admin Issues
Subject: Script to change Network Adapters Binding

Hi,

How can I change Network Adapter binding for Win XP/Vista/7. I know the 
settings can be found under below reg key, but how to set "Local Area 
Connection" as first & "Wireless Connection" as second connection.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Linkage\Bind

With below command we can check the Device ID of Network adapters. But not 
getting how to use below output of Local area connection to change above Reg 
key sequence.

wmic nicconfig get Description,SettingID

Kindly tell me if another way is there to do this.


Dhiraj

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Script to change Network Adapters Binding

2010-09-10 Thread Haritwal, Dhiraj
Thanks Michael, I have already saw these posts. Does anybody tried this with 
these articles. Sorry, I don't have C++ programming skills.

Set_Wireless_NIC_IPMetric.vbs I have tried but it's not changing Binding order.

http://blogs.technet.com/b/brucecowper/archive/2005/03/28/403043.aspx

above post also not changing Network Adapter binding order.



Dhiraj



From: Michael B. Smith [mailto:mich...@smithcons.com]
Sent: Friday, September 10, 2010 4:46 PM
To: NT System Admin Issues
Subject: RE: Script to change Network Adapters Binding

This KB describes the available interfaces: 
http://support.microsoft.com/kb/894564/en-us

If you don't mind writing a little C++ (or P/Invoking some C#), here is the API 
interface:

http://msdn.microsoft.com/en-us/library/ff547694.aspx

This blog post should help you understand how the binding order is built from 
the registry and how to modify it there:

http://blogs.technet.com/b/brucecowper/archive/2005/03/28/403043.aspx

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Haritwal, Dhiraj [mailto:dhiraj.harit...@ap.sony.com]
Sent: Friday, September 10, 2010 5:06 AM
To: NT System Admin Issues
Subject: Script to change Network Adapters Binding

Hi,

How can I change Network Adapter binding for Win XP/Vista/7. I know the 
settings can be found under below reg key, but how to set "Local Area 
Connection" as first & "Wireless Connection" as second connection.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Linkage\Bind

With below command we can check the Device ID of Network adapters. But not 
getting how to use below output of Local area connection to change above Reg 
key sequence.

wmic nicconfig get Description,SettingID

Kindly tell me if another way is there to do this.


Dhiraj



This email is confidential and intended only for the use of the individual or 
entity named above and may contain information that is privileged. If you are 
not the intended recipient, you are notified that any dissemination, 
distribution or copying of this email is strictly prohibited. If you have 
received this email in error, please notify us immediately by return email or 
telephone and destroy the original message. - This mail is sent via Sony Asia 
Pacific Mail Gateway..

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe ntsysadmin


This email is confidential and intended only for the use of the individual or 
entity named above and may contain information that is privileged. If you are 
not the intended recipient, you are notified that any dissemination, 
distribution or copying of this email is strictly prohibited. If you have 
received this email in error, please notify us immediately by return email or 
telephone and destroy the original message. - This mail is sent via Sony Asia 
Pacific Mail Gateway..

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

RE: Script to change Network Adapters Binding

2010-09-10 Thread Michael B. Smith
This KB describes the available interfaces: 
http://support.microsoft.com/kb/894564/en-us

If you don't mind writing a little C++ (or P/Invoking some C#), here is the API 
interface:

http://msdn.microsoft.com/en-us/library/ff547694.aspx

This blog post should help you understand how the binding order is built from 
the registry and how to modify it there:

http://blogs.technet.com/b/brucecowper/archive/2005/03/28/403043.aspx

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Haritwal, Dhiraj [mailto:dhiraj.harit...@ap.sony.com]
Sent: Friday, September 10, 2010 5:06 AM
To: NT System Admin Issues
Subject: Script to change Network Adapters Binding

Hi,

How can I change Network Adapter binding for Win XP/Vista/7. I know the 
settings can be found under below reg key, but how to set "Local Area 
Connection" as first & "Wireless Connection" as second connection.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Linkage\Bind

With below command we can check the Device ID of Network adapters. But not 
getting how to use below output of Local area connection to change above Reg 
key sequence.

wmic nicconfig get Description,SettingID

Kindly tell me if another way is there to do this.


Dhiraj



This email is confidential and intended only for the use of the individual or 
entity named above and may contain information that is privileged. If you are 
not the intended recipient, you are notified that any dissemination, 
distribution or copying of this email is strictly prohibited. If you have 
received this email in error, please notify us immediately by return email or 
telephone and destroy the original message. - This mail is sent via Sony Asia 
Pacific Mail Gateway..

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~   ~

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe ntsysadmin