Deleting an Orphaned Exchange Connector

Deleting an Orphaned Exchange Connector

  • Comments 8
  • Likes

If you import the Exchange connector MP and then create an Exchange connector and then delete the Exchange connector MP without first deleting the Exchange connector from the Connectors view you will end up with an orphaned Exchange connector object in the Connectors view.  To avoid this happening just delete the Exchange connector from the Connectors view prior to deleting the Exchange connector MP.  Chances are if you are reading this blog post though you did it in the wrong order.  Smile

Note: If you are new to PowerShell you might want to get a friend to help you with this.

Here is how to get rid of an orphaned Exchange connector.

    1. First download and install SMLets.
    2. Then open a PowerShell window on your SCSM management server.
    3. Run the following command:  Import-Module SMLets
    4. Then run a command like this:

Get-SCSMObject –Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector)

You should get back some results that look like this:


Normally you can just run a command like this to remove your connector:

Get-SCSMObject –Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector) | ?{$_.DisplayName –eq “Exchange Connector”} | Remove-SCSMObject –Force –Confirm

Obviously, in your case you would need to use the actual display name for your connector.  In this case it is “Exchange Connector”.

In this case there are actually two connectors with the same name.  In order to get just the one we want we can also use the LastModified timestamp to delete the one we want like this:

Get-SCSMObject –Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector) | ?{$_.DisplayName –eq “Exchange Connector”} | ?{$_.LastModified –lt “8/30/2011 9:00:00 AM”} | Remove-SCSMObject –Force -Confirm

Hope that helps!


Update Oct 19, 2012 - Apparently if you use this approach with Linking Framework based connectors it will cause some issues.  So - please don't use this approach with any AD or SCCM connectors.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Thanks Travis, one item off my task list for today.

  • Thanks, Travis, my old duff Exchange Connector has been bugging me for ages :)

  • Thanks man. Keep up the good work. This one helped me.

  • Do you have instructions for doing something similar in SCSM 2012?  I have an AD Connector that's causing me problems and I can't delete it because it's showing up as Disabled... and I can't Enable it.

  • Thanks Travis...

    I forgot to remove the Exchange 3.0 RC connector before removing the management pack today, and your trick still worked!  


    PS C:\Program Files\Microsoft System Center 2012\Service Manager> Get-SCSMClassInstance -Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector)

    __EnterpriseManagementObject : Exchange Connector

    __RelationshipAliases        : {}

    DataProviderDisplayName      : Exchange Connector

    DataProviderName             :

    DatawarehouseProfileName     :

    Description                  :

    DiscoveryDataIsManaged       :

    DiscoveryDataIsShared        :

    DisplayName                  : Exchange Connector

    Enabled                      : True

    Id                           : ExchangeConnector.59196a768d1148079c8a73581fa106d6


    Get-SCSMClassInstance -Class (Get-SCSMClass –Name Microsoft.SystemCenter.Connector) | Where-Object {$_.DisplayName –eq “Exchange Connector”} | Remove-SCSMClassInstance