always moving in and out of networks on static IP’s and back to DHCP etc. You can do this via GUI or via command line. The advantage to command line is you can script common commands for quick changes. The idea here is that you make a few batch files. Like DHCP, 10.0.0.0, 192.168.0.0.0 172… you get the idea
In each batch file you then script the proper network address information. This allows for a quick change from network to network with out needing to traverse the slower GUI for network settings.
Here is a example of a static address the important part is the interface name make sure you link this to the proper interface for your laptop
Example for a batch file
netsh interface ip set address name="Local Area Connection" static 192.168.0.100 255.255.255.0 192.168.0.1 1
or for DHCP
netsh interface ip set address "Local Area Connection" dhcp
Another trick is to export the settings to a file and reload them to export the current settings you can then put this setting into a batch file and edit the .txt for local specific. So if your working on site for a week and then head home to get email you can export the client settings and a DHCP setting, then you don’t need to remember or write things down just a quick type type.
netsh -c interface dump > c:\location1.txt
to import them back into the system
netsh -f c:\location1.txt
Other command examples
netsh interface ip show config
netsh interface ip set dns "Local Area Connection" static 192.168.0.200
netsh interface ip set dns "Local Area Connection" dhcp
netsh interface ip set wins "Local Area Connection" static 192.168.0.200
netsh is very powerful you can change everything network including the firewall via command fill read me is here