7.8. Removing a Routing Group
Problem
You need to remove a routing group in your Exchange organization.
Solution
Using a graphical user interface
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.
Using VBScript
' 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 ...
Get Exchange Server Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.