Use PowerShell to Determine When Your DHCP Lease Expires

This blog post applies to only Windows 8 and Windows Server 2012. Want to know how much time there is until your current DHCP leases expire?

I have 23 hours, 47 minutes, and 46 seconds until my current DHCP lease expires on one of my network interfaces and 22 seconds more than that left on the other one.

Want to know the exact date and time of when they expire?

I haven’t added any error handling to these scripts so if DHCP is not enabled on any of your network interfaces, the scripts will generate errors.


1 Comment

  1. dieta

    You can now take any two DHCP server and failover each other. To configure this, go to DHCP server manager right click and select Configure Failover. Select the failover server and you are all set.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: