File Types (37)
Internet Explorer (80)
About this site
Links to us
General :: Linux :: Network
Network setup and administration. Both from Windows and Linux angles.
This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.
Generated 8:00:30 on Jul 7, 2020
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?
(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:
netsh interface ip set address "Local Area Connection" dhcp
netsh interface ip set dns "Local Area Connection" dhcp
|Most recent comments