Im looking to query a next available IP address in a range.
I have gotten this far Get-SwisData $swis 'SELECT TOP 1 I.IpAddress FROM IPAM.IPNode I WHERE Where IpAddress >30 AND Status=2 AND I.Subnet.DisplayName = ''10.8.63.0/24'''
But I need the first available between a range like between 10.8.63.30 - 10.8.63.230
Havent been able to figure this out. I tried to filter results but all of their methods are string values and Im not sure how to filter those. Additionally if you change the 'SELECT TOP' value from 1 to say
5 or 10 or 20, its duplicates the values it returns, which im not sure why it does that. There must be another 'WHERE' clause I use to filter the results on the initial query.
Any ideas?