DHCP netsh commands help!

bencho

2[H]4U
Joined
Sep 15, 2007
Messages
2,093
Hey everyone,

I was curious to know if there was a way to script DHCP Reservation modifications.

I've learned how to script the creation of scopes, and the creation of reservations BUT, what are the commands to MODIFY a current reservation?

For example, I ran this line to create a reservation:
netsh Dhcp Server [d.h.c.p] Scope [s.c.p.e] Add reservedip [i.p.a.d] hhhh.hhhh.hhhh "Reserved" "Reserved" DHCP

Now I want to change the mac, description, and comments fields, but I can't seem to find a command to do that.

http://technet.microsoft.com/en-us/library/cc787375(WS.10).aspx
 
When i try to do another add reservedip, it says that the ip/mac is already in use. But looking through that article:

If an existing reservation needs modification, the existing entry should be sent a sequence of commands that delete the existing reservation and then add the new one.

So I guess thats the only option.

Thanks!
 
Back
Top