To quickly export your IP (inc dns / wins) settings to a text file, use the following command:
netsh -c interface dump > c:\work-net.txt
When you connect to another LAN
netsh -c interface dump > c:\home.txt
Once you have everything in a text file, you can use this command to import the settings depending on your location
netsh -f c:\work-net.txt