My predisposition to command line solutions for problems stems from my vast experience with UNIX. (I will admit that it is fun to intimidate GUI users.) However, there are times that command line solutions are the best fit for a problem. For example, if you find yourself frequently switching between a static IP address and DHCP for a network interface, as happens with laptops sometimes, it would be nice to have a command that could fit in a batch file. The netsh command in XP SP2 makes this possible. This tech-recipe shows the command to make an interface use DHCP.
To make the interface Local Area Network use DHCP instead of a static address, use the following command (all on one line):
netsh int ip set address name="Local Area Connection" source=dhcp
Other interface names can be substituted as needed.