SCOM 2016 remove old SCVMM server (connector)

JRB 1 Reputation point
2020-08-24T12:33:38.847+00:00

I'm trying to remove an old SCVMM from SCOM 2016 because the old server does not exist anymore. I found this article with a powershell script.

how-to-remove-old-product-connectors-from-system-center-operations-man

When I run the script it gives me the following error when it tries to delete the subscription and connector.

Get-Connector : The 'Path' parameter is empty or the required provider location is not set."
At C:\scripts\deleteconnector.ps1:78 char:19

  • $connector = Get-Connector -id $testconnector.id
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidArgument: (:String) [Get-Connector], ArgumentOutOfRangeException
  • FullyQualifiedErrorId : InvalidParameter,Microsoft.EnterpriseManagement.OperationsManager.ClientShell.GetConnectorCmdlet

Does anyone know how I can solve this and completely remove the old scvmm connector? Or does someone knows an alternative?

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,409 questions
System Center Virtual Machine Manager
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Laude 85,596 Reputation points
    2020-08-24T18:10:50.16+00:00

    Hi @JRB ,

    Did you have a look at Kevin's blog post here?
    Removing unwanted product connectors in SCOM 2012 R2 and SCOM 2016

    ----------

    (If the reply was helpful please don't forget to upvote or accept as answer, thank you)

    Best regards,
    Leon

    1 person found this answer helpful.
    0 comments No comments