[THIN] OTish: Network Roaming

  • From: Danny Clarke <Danny@xxxxxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Thu, 17 Jun 2004 15:02:52 +0100

Andrew,
 
The IP config side can be handled pretty easily - you can give him a
shortcut for each location (or location type e.g. one for pure DHCP, and one
each for each other type) using NETSH.  Dunno about the Mail config though,
sorry!
 
Copy framedyn.dll from c:\windows\system32\wbem into c:\windows\system32
 
Type netsh interface ip dump > config1.txt
 
Edit config1.txt file and remove the "register=PRIMARY" from the DNS lines
 
Create an appropriately named shortcut (eg HeadOffice) with the command
line:  c:\windows\system32\netsh -f <Path>\config1.txt
 
You can then either config your/his IP settings as per each site and repeat
the above, or just edit the config files manually and create the appropriate
shortcuts for him..
 
A full DHCP config would look like this:
 
 
# ---------------------------------- 
# Interface IP Configuration         
# ---------------------------------- 
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name="Local Area Connection" source=dhcp 
set dns name="Local Area Connection" source=dhcp
set wins name="Local Area Connection" source=dhcp
popd
# End of interface IP configuration
 
 
Whereas a configured interface might look something like this:
 
# ---------------------------------- 
# Interface IP Configuration         
# ---------------------------------- 
pushd interface ip
# Interface IP Configuration for "Local Area Connection"
set address name="Local Area Connection" source=static addr=192.0.0.236
mask=255.255.255.0
set address name="Local Area Connection" gateway=192.0.0.1 gwmetric=0
set dns name="Local Area Connection" source=static addr=158.43.128.1
add dns name="Local Area Connection" addr=154.32.107.18
set wins name="Local Area Connection" source=static addr=none
popd
# End of interface IP configuration

Other related posts: