?
Solved

Is It Possible to Change the Network Binding Order via a Script?

Posted on 2008-01-31
3
Medium Priority
?
3,661 Views
Last Modified: 2012-06-27
We have hundreds of VPN clients in the field.  We have discovered that some ISPs redirect a failed DNS name resolution to their services portal instead of properly returning that the host cannot be resolved to an IP.  With VPN this causes a problem if the binding order has the physical NIC first and the user is attempting to access an internal domain name that is not resolvable by broadcast.  If their ISP properly returns that  the host is not found the client machine will then do a DNS lookup across the VPN virtual adapter.  It will then hit the internal DNS server that has a record for that site and get the correct IP. However if the ISP resolves an unknown host to their services portal then the second DNS lookup never occurs.  This causes an inability of the user to hit such internal sites if they have such an ISP.  This is the binding order accessible by running ncpa.cpl to open "Network Connections", then clicking on "Advanced" and then "Advanced Settings" and moving the virtual adapter for the VPN client to the top under "Adapters and Bindings".  We have machines that were built with the same image so adapter names are the same on all machines. Does anyone know how to script changing the binding order?
0
Comment
Question by:ADougherty234
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
sr75 earned 2000 total points
ID: 20791293
Apparently it is possible.  Here is a webpage with the code of how it is done:

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

Author Comment

by:ADougherty234
ID: 20791391
This site nevers ceases to amaze me. Thank you!
0
 
LVL 15

Expert Comment

by:sr75
ID: 20791460
Glad to have helped out.
0

Featured Post

Evaluating UTMs? Here's what you need to know!

Evaluating a UTM appliance and vendor can prove to be an overwhelming exercise.  How can you make sure that you're getting the security that your organization needs without breaking the bank? Check out our UTM Buyer's Guide for more information on what you should be looking for!

Question has a verified solution.

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

I've written this article to illustrate how we can implement a Dynamic Multipoint VPN (DMVPN) with both hub and spokes having a dynamically assigned non-broadcast multiple-access (NBMA) network IP (public IP). Here is the basic setup of DMVPN Pha…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses
Course of the Month5 days, 10 hours left to enroll

588 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