header image

DHCP scope lease time

Posted by: | January 7, 2015 Comments Off on DHCP scope lease time |

I wanted to reduce the lease time on a DHCP scope

 

$lt = New-TimeSpan -Hours 12
Set-DhcpServerv4Scope -ScopeId 10.10.54.0 -LeaseDuration $lt

 

You could even make it a one liner if you wished

 

Set-DhcpServerv4Scope -ScopeId 10.10.54.0 –LeaseDuration (New-TimeSpan -Hours 12)

under: DHCP, PowerShell, Windows Server 2012, Windows Server 2012 R2

Comments are closed.

Categories