cmd script to update dhcp settings

I was going through old files and came across two dos batch files I used to use to run on and off DHCP during testing. I thought I would share those:

 

Turn on static IP:

netsh interface ip set dns "Wireless" static 210.10.96.37 primary
ipconfig /flushdns

Turn on dynamic IP via DHCP

netsh interface ip set dns "Wireless" dhcp primary
ipconfig /flushdns

 

 

Would you like to contribute?



Free business joomla templates