Remove Routing Group Connector getting matches multiple entries

I need to remove my routing group connector
[PS] C:\Windows\system32>get-routinggroupconnector

Name                      SourceRoutingGroup                             TargetRoutingGroup
----                      ------------------                             ------------------
Exchange2003CBB           CENBANK                                        Exchange Routing Group (DWBGZMFD01QNBJR)
Exchange2003CBB           Exchange Routing Group (DWBGZMFD01QNBJR)       CENBANK
Exchange2003LiveCBB       CENBANK                                        Exchange Routing Group (DWBGZMFD01QNBJR)
Exchange2003LiveCBB       Exchange Routing Group (DWBGZMFD01QNBJR)       CENBANK

[PS] C:\Windows\system32>remove-RoutingGroupConnector Exchange2003CBB
The operation couldn't be performed because 'Exchange2003CBB' matches multiple entries.
    + CategoryInfo          : NotSpecified: (0:Int32) [Remove-RoutingGroupConnector], ManagementObjectAmbiguousExcepti
   on
    + FullyQualifiedErrorId : F43D1DE9,Microsoft.Exchange.Management.SystemConfigurationTasks.RemoveRoutingGroupConnec
   tor

above are the commands I ran and the error I am getting

thanks
Marcos
CBBNet AdminAsked:
Who is Participating?
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Get-RoutingGroupConnector "Exchange2003CBB" | Remove-RoutingGroupConnector

Get-RoutingGroupConnector "ea21aafc-10fc-4f70-8a64-fcf97a1ee143" |FL (If this gives the Output)
Get-RoutingGroupConnector "ea21aafc-10fc-4f70-8a64-fcf97a1ee143" | Remove-RoutingGroupConnector

RoutingGroup-Connector
- There is a Hypen as per error

- Rancy
0
 
Manpreet SIngh KhatraSolutions Architect, Project LeadCommented:
Get-RoutingGroupConnector "Exchange2003CBB" |FL

If you run the above command does it lists both connectors FL or just the one you want if just the one you want.

Get-RoutingGroupConnector "Exchange2003CBB" | Remove-RoutingGroupConnector

- Rancy
0
 
CBBNet AdminAuthor Commented:
hi

It list both thanks
0
Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

 
CBBNet AdminAuthor Commented:
Get-RoutingGroupConnector "Exchange2003CBB" | Remove-RoutingGroupConnector
gives an error
0
 
CBBNet AdminAuthor Commented:
Hi Rancy
here are the results

[PS] C:\Windows\system32>Get-RoutingGroupCOnnector "Exchange2003CBB" | FL


RunspaceId                   : 7635f1d0-617d-4242-9e96-98f3e7cca092
TargetRoutingGroup           : Exchange Routing Group (DWBGZMFD01QNBJR)
Cost                         : 1
TargetTransportServers       : {AA0202X528}
ExchangeLegacyDN             : /O=Central Bank of Belize/OU=CENBANK/cn=Configuration/cn=Connections/cn=Exchange2003CBB
PublicFolderReferralsEnabled : True
SourceRoutingGroup           : CENBANK
SourceTransportServers       : {AA0402P436}
HomeMTA                      : Microsoft MTA
HomeMtaServerId              : AA0402P436
MaxMessageSize               : unlimited
AdminDisplayName             :
ExchangeVersion              : 0.1 (8.0.535.0)
Name                         : Exchange2003CBB
DistinguishedName            : CN=Exchange2003CBB,CN=Connections,CN=CENBANK,CN=Routing Groups,CN=CENBANK,CN=Administra
                               ive Groups,CN=Central Bank of Belize,CN=Microsoft Exchange,CN=Services,CN=Configuration
                               DC=centralbank,DC=org,DC=bz
Identity                     : Exchange2003CBB
Guid                         : ea21aafc-10fc-4f70-8a64-fcf97a1ee143
ObjectCategory               : centralbank.org.bz/Configuration/Schema/ms-Exch-Routing-Group-Connector
ObjectClass                  : {top, msExchConnector, msExchRoutingGroupConnector}
WhenChanged                  : 2/7/2012 9:13:13 AM
WhenCreated                  : 2/7/2012 9:12:36 AM
WhenChangedUTC               : 2/7/2012 3:13:13 PM
WhenCreatedUTC               : 2/7/2012 3:12:36 PM
OrganizationId               :
OriginatingServer            : AA2102X626.centralbank.org.bz
IsValid                      : True

RunspaceId                   : 7635f1d0-617d-4242-9e96-98f3e7cca092
TargetRoutingGroup           : CENBANK
Cost                         : 1
TargetTransportServers       : {AA0402P436}
ExchangeLegacyDN             : /o=Central Bank of Belize/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configu
                               ation/cn=Connections/cn=Exchange2003CBB
PublicFolderReferralsEnabled : True
SourceRoutingGroup           : Exchange Routing Group (DWBGZMFD01QNBJR)
SourceTransportServers       : {AA0202X528}
HomeMTA                      : Microsoft MTA
HomeMtaServerId              : AA0202X528
MaxMessageSize               : unlimited
AdminDisplayName             :
ExchangeVersion              : 0.1 (8.0.535.0)
Name                         : Exchange2003CBB
DistinguishedName            : CN=Exchange2003CBB,CN=Connections,CN=Exchange Routing Group (DWBGZMFD01QNBJR),CN=Routin
                                Groups,CN=Exchange Administrative Group (FYDIBOHF23SPDLT),CN=Administrative Groups,CN=
                               entral Bank of Belize,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=centralbank
                               DC=org,DC=bz
Identity                     : Exchange2003CBB
Guid                         : 173284fc-a8d9-44ba-92e3-2774dd725460
ObjectCategory               : centralbank.org.bz/Configuration/Schema/ms-Exch-Routing-Group-Connector
ObjectClass                  : {top, msExchConnector, msExchRoutingGroupConnector}
WhenChanged                  : 2/7/2012 9:13:13 AM
WhenCreated                  : 2/7/2012 9:12:36 AM
WhenChangedUTC               : 2/7/2012 3:13:13 PM
WhenCreatedUTC               : 2/7/2012 3:12:36 PM
OrganizationId               :
OriginatingServer            : AA2102X626.centralbank.org.bz
IsValid                      : True



[PS] C:\Windows\system32>Get-RoutingGroupCOnnector "Exchange2003CBB" | Remove-RoutingGroup-Connector
The term 'Remove-RoutingGroup-Connector' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:76
+ Get-RoutingGroupCOnnector "Exchange2003CBB" | Remove-RoutingGroup-Connector <<<<
    + CategoryInfo          : ObjectNotFound: (Remove-RoutingGroup-Connector:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
0
 
CBBNet AdminAuthor Commented:
hi Rancy

  I am so glad you caught my syntax error.

Get-RoutingGroupConnector "Exchange2003CBB" | Remove-RoutingGroupConnector

This command delete both entries and this exactly what I wanted.

thanks for your time and solution

have a nice day
0
 
CBBNet AdminAuthor Commented:
Excellent site and I resolved my problem
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.