Before i tell about how to change the Subnet of LIS, i need to tell you how to create the Subnet and associate with the Subnet
Set-CSLisSubnet -Subnet 192.168.1.0 -Description "Test" -Location "LocationA" -CompanyName "" -HouseNumber "123" -HouseNumberSuffix "" -PreDirectional "" -StreetName "No one lives" -StreetSuffix "" -PostDirectional "" -City Bangalore -State "" -PostalCode "123456" -Country "IND"
Before this can take effect you will need to publish your location information - quite simply execute the Publish-CsLisConfiguration cmdlet to commit changes.
Now coming to the topic how to change the subnet of LIS from LocationA to LocationB
Remove-CsLisSubnet -Subnet 192.168.1.0
Set-CsLisSubnet -Subnet 192.168.1.0 -Location LocationB -CompanyName ABC -HouseNumber 456 -StreetName Kumble -City Bangalore -State KA -PostalCode 342133 -Country IND
If you need to remove the locationA which was disassociated from the subnet, then you need to run the below command and publish the changes
Get-CsLisLocation -Unreferenced | where-object {$_.Location -eq LocationA} | Remove-CsLisLocation
Set-CSLisSubnet -Subnet 192.168.1.0 -Description "Test" -Location "LocationA" -CompanyName "" -HouseNumber "123" -HouseNumberSuffix "" -PreDirectional "" -StreetName "No one lives" -StreetSuffix "" -PostDirectional "" -City Bangalore -State "" -PostalCode "123456" -Country "IND"
Before this can take effect you will need to publish your location information - quite simply execute the Publish-CsLisConfiguration cmdlet to commit changes.
Now coming to the topic how to change the subnet of LIS from LocationA to LocationB
Remove-CsLisSubnet -Subnet 192.168.1.0
Set-CsLisSubnet -Subnet 192.168.1.0 -Location LocationB -CompanyName ABC -HouseNumber 456 -StreetName Kumble -City Bangalore -State KA -PostalCode 342133 -Country IND
If you need to remove the locationA which was disassociated from the subnet, then you need to run the below command and publish the changes
Get-CsLisLocation -Unreferenced | where-object {$_.Location -eq LocationA} | Remove-CsLisLocation
No comments:
Post a Comment