Static to DHCP

aderuwe

Limp Gawd
Joined
Nov 12, 2003
Messages
174
The network I am responsible for just added a DHCP server and all the computers are set up for static IPs. There are about 50 computers and I was wondering if there is an easy way to change the settings in Windows over to get an IP dynamically? Could I write a batch file to run on each computer that would change from static to dynamic and then reboot? There is no domain so I cannot do it that way. Any suggestions?

Adam
 
Thanks. I found that after an hour of googling.

This is what I came up with:

@echo off
ECHO This will shutdown your computer as soon as it is finished.
ECHO Please save and close all important data before continuing.
pause
cls
netsh interface ip set address local source=dhcp
SHUTDOWN -r -t 20



netsh is a pretty neat little utility, check it out if you haven't.

Adam
 
Back
Top