Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Replace the -NetworkID parameter with the right Subnet Pool ID to reclaim addresses
- $subnet = Get-HPOVAddressPoolSubnet -NetworkId 10.41.87.0
- ForEach ($range in $subnet.rangeUris)
- {
- $_Uri = $range + '/allocated-fragments?start=0&count=1'
- $_AllocatedFragments = Send-HPOVRequest -uri $_Uri
- $_Uri = $range + '/collector'
- $Body = @{idList = @($_AllocatedFragments.members[0].startAddress)}
- Send-HPOVRequest -Uri $_Uri -Method PUT
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement