| Windows Apache (6) File Types (33) Internet Explorer (6) Network (11) Passwords (6) Printing Processes (13) Programming (318) |
Programmatically setting the network connection to DHCP instead of a static IP
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:
Comments:
|