Jump to content

Recommended Posts

Posted

One of the Heads I work for is now head at two schools and has one laptop that he wishes to use at both schools.

 

Both have different static IP addresses.

 

What I would like to be able to do for him is write two scripts so he can run one or the other from his desktop and change the IP address and setttings for whichever school he is at.

 

Hope someone can come up with a suggestion, or is there a freebie program that would do this?

 

 

Paul

Posted

The static IP is probably going to be the least of your problems if he wants to use any domain related stuff on the new site as the laptop won't want to be on two domains at once!

 

That being said, yes you can script this through the use of "netsh".

 

Instructions in the link

  • Thanks 1
Posted

Thanks to Kmount & Sysman MK, they put me on the right track and I have got this working with 2 bat files (not vbs as perhaps suggested).

 

In the end I just copied and pasted from the following site

Configure TCP/IP from the Command Prompt

 

Which worked a treat and I even have a bat file that will clear the 'static address' and take me back to DHCP (including DNS)

 

Paul

Posted
would a hardware profile solve this issue ? Just a thought and I do know that hardware profiles are a bit temperamental sometimes.

 

Thanks but this works a charm so I'm going to stick with it. :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...