You need to remove a routing group in your Exchange organization.
Open the Exchange System Manager (Exchange System Manager.msc).
Ensure that you have enabled viewing of administrative and routing groups (see Recipe 7.3).
Expand the organization→ Administrative Groups→ target administrative group→ Routing Groups→ target routing group.
Ensure that all member servers have been moved to other routing groups (see Recipe 7.9).
Select the Routing Groups container. Right-click the routing group object and select Delete.
Confirm the deletion.
' This code deletes a routing group if it meets several tests ' ------ SCRIPT CONFIGURATION ------ ' Name of the Exchange organization strExchangeOrg = "
<Organization>" ' e.g., ExampleOrg ' Name of the administrative group the routing group is in strAdminGroup = "
<AdminGroup>" ' e.g., SeattleAG ' Name of the routing group the server is in strRoutingGroup = "
<RoutingGroup>" ' e.g., RedmondRG ' Default boolean state; do not change boolReady = True ' ------ END CONFIGURATION --------- ' Create the routing group object strConfigDN = GetObject("LDAP://RootDSE").Get("configurationNamingContext") strRoutingGroupDN = strRoutingGroup & ",CN=Routing Groups,CN=" & _ strAdminGroup & ",CN=Administrative Groups,CN=" & _ strExchangeOrg & ",CN=Microsoft Exchange,CN=Services," & _ strConfigDN Set objRoutingGroup = GetObject("LDAP://CN=" & strRoutingGroupDN) ' Test for member servers ...