File Types (33)
Internet Explorer (6)
Programmatically setting the network connection to DHCP instead of a static IP
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:Is there a commandline tool to switch the network connection from a static IP to DHCP?
Answer:(Applies to Windows 2000, NT 4 and XP)
Yes. Use the netsh commandline scripting utility. It allows you to display or modify the network configuration of your local or a remote computer. You can even feed it a batch file if you repeatedly need to do the same thing.
For your request, you might want to write a batch file with these 2 statements: