How to remove an IP subnet from VMM while IP addresses in its range are still in use

$IPAddressPool = Get-SCStaticIPAddressPool -IPv4 -Subnet "10.1.1.0/24"
$IPAddress = Get-SCIPAddress -StaticIPAddressPool $IPAddressPool
ForEach ($ip in $IPAddress) {Revoke-SCIPAddress -AllocatedIPAddress $ip}

Now the subnet can be removed from SCVMM

Comments are closed.