This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ProfileToEdit = Get-HPOVServerProfile -Name "My Profile 1" -ErrorAction Stop | |
$ProfileToEdit.name = "My new name" | |
# Set-HPOVResource -InputObject $ProfileToEdit | |
# Or you can use Send-HPOVRequest natively: | |
# Send-HPOVRequest -Uri $ProfileToEdit.uri -Method PUT -Body $ProfileToEdit | Wait-HPOVTaskComplete |
NewerOlder