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?