Tuumke
Tuumke

Reputation: 51

powershell Get-DhcpServerv4FreeIPAddress from end of range

We use reservations starting from the end of our DHCP scopes for printers.

Get-DHCPServerv4FreeIpAddress starts from the beginning. Is there anyway to make it start from the end to the beginning?

Upvotes: 1

Views: 1275

Answers (1)

Mark Wragg
Mark Wragg

Reputation: 23355

If you know how large the scope is (and how many addresses were already used) you could potentially do this (for example if the scope is 253 addresses):

Get-DHCPServerv4FreeIpAddress -numaddresses 253 | Select -Last 1

Upvotes: 1

Related Questions