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 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?