switch networks

  • Thread starter Thread starter James
  • Start date Start date
J

James

Hello,

Looking for a way to disable network connection and
enable a second nework connection through a bat file! I
have a user that is connected to two networks that
I want to be able to switch back and forth but never have
both connections enabled at once! Basiaclly a bat file
that would enable one then diasle the other so the user
can swap networks but never be on both at the same time!
DID I JUST REPEAT MYSELF!!! Thanks for your help!!!
 
"James" said:
Looking for a way to disable network connection and
enable a second nework connection through a bat file! I
have a user that is connected to two networks that
I want to be able to switch back and forth but never have
both connections enabled at once! Basiaclly a bat file
that would enable one then diasle the other so the user
can swap networks but never be on both at the same time!
DID I JUST REPEAT MYSELF!!! Thanks for your help!!!

If the networks use TCP/IP and DHCP, you can use batch commands to
release and renew the DHCP leases for their corresponding network
connections. For example:

ipconfig /release "Local Area Connection"
ipconfig /renew "Local Area Connection 2"
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top