Follow-up article on how to set lease times through netsh.
Question: I have a customer that has 5 DHCP servers that host many scopes. The customer wants to know of a way to script changing the lease duration on the advanced page of the properties of the scope (because they also have Bootp clients). Anybody have any ideas on how to script this change?
netsh dhcp server scope 10.0.0.0 set optionvalue 51 DWORD user=”Default BOOTP Class” 3600 is your babe! For a detailed explanation please refer to my previous post on How to set DHCP scope lease time through netsh?
Comments
- Anonymous
May 23, 2005
RePost:
http://www.yeyan.cn/Programming/netshDHCP.aspx - Anonymous
April 05, 2007
Hi,I tried that command but when I went to check in the mmc console... it had not changed at all. Is it normal? - Anonymous
February 08, 2012
netsh dhcp server scope 10.0.0.0 set optionvalue 51 DWORD 3600 is the correct command