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

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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Apparently it is possible.  Here is a webpage with the code of how it is done:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ADougherty234Author Commented:
This site nevers ceases to amaze me. Thank you!
Glad to have helped out.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.