Automate DHCP client computer add/remove via command line on Windows 2003 DHCP Server
Posted on 2005-04-11
We have a Windows 2003 server as DHCP server. Its a pain to enter in each MAC address and info by hand, I would like to automate the process. There are 4 fields that concern me and are necessary, the fifth field is optional to code. The list is below, its what the DHCP snap-in has...but I need this to be via commandline so I can automate it.
1. DHCP Reservation Name
2. MAC Address
3. IP Address
4. DHCP Description
5. (optional) Choice of DHCP/BOOTP/BOTH
Please tell me the cmd / exe with some sample info filled in (dhcp server, client info, etc).