You wish to move an Exchange server to a different routing group.
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→ source routing group. Also expand the target routing group.
Click on the Members container of the source routing group to display the list of member servers in the right pane.
Move the server to the new routing group through either of the following methods:
Click on the server you wish to move and hold the mouse button down while dragging it to the Members container of the target routing group.
Right-click on the server you wish to move and select Cut. Right-click the Members container of the target routing group and select Paste.
' This code moves an Exchange server to a different routing group. ' ------ SCRIPT CONFIGURATION ------ ' The common name of the Exchange server object strExchangeServer = "
<ExchangeServerName>" ' e.g., red-exch02 ' Name of the administrative group the server is a member of strSourceAG = "
<SourceAG>" ' e.g., SeattleAG ' Name of the target routing group to move the server to strTargetRG = "
<TargetRG>" ' e.g., RedmondRG ' Name of the administrative group the target routing group is in ' If you are in mixed mode, this must be the same as strSourceAG. ...