SCOM 2019 UR4 - How to remove a MP with a reference in Microsoft.SystemCenter.SecureReferenceOverride

Laszlo H 66 Reputation points
2023-06-22T07:47:51.9566667+00:00

Hello,

I need to delete a MP but when I try, it's tells me it has a dependency with :

Microsoft.SystemCenter.SecureReferenceOverride.

I tried a procedure that I found on Internet:

PS C:\> $MP = Get-SCOMManagementpack -Name Microsoft.SystemCenter.SecureReferenceOverride
PS C:\> $MP.References

Key             Value
---             -----
SystemCenter    ManagementPack:[Name=Microsoft.SystemCenter.DataWarehouse.Internal, KeyToken=31bf3856ad364e35, Versi...
SystemCenter1   ManagementPack:[Name=Microsoft.SystemCenter.DataWarehouse.Library, KeyToken=31bf3856ad364e35, Versio...
SystemCenter3   ManagementPack:[Name=Microsoft.SystemCenter.Apm.Infrastructure, KeyToken=31bf3856ad364e35, Version=1...
Citrix          ManagementPack:[Name=Comtrade.Citrix.Library, KeyToken=780495490ee62b31, Version=1.0.51.0]
URLGenie        ManagementPack:[Name=URLGenie, KeyToken=6649d9cd37e0d562, Version=2.0.0.47]
System          ManagementPack:[Name=System.Library, KeyToken=31bf3856ad364e35, Version=7.5.8501.0]
Citrix1         ManagementPack:[Name=ComTrade.Citrix.NetScaler.Library, KeyToken=780495490ee62b31, Version=1.17.93.0]
SystemCenter2   ManagementPack:[Name=Microsoft.SystemCenter.Library, KeyToken=31bf3856ad364e35, Version=7.0.8448.6]
Shared          ManagementPack:[Name=DataONTAP.Shared, KeyToken=5d4427961a9a0646, Version=4.1.3.8238]
EnterpriseVault ManagementPack:[Name=Veritas.EnterpriseVault.Library, KeyToken=26c5e2ccf2b9267c, Version=12.5.0.1221]
Unix            ManagementPack:[Name=Microsoft.Unix.Library, KeyToken=31bf3856ad364e35, Version=10.22.1022.0]
Citrix2         ManagementPack:[Name=Comtrade.Citrix.XenApp.And.XenDesktop, KeyToken=780495490ee62b31, Version=3.14....


PS C:\> $MP.References.Remove("EnterpriseVault")
True
PS C:\> $MP.Verify()
PS C:\> $MP.AcceptChanges()
Exception calling "AcceptChanges" with "0" argument(s): "Database error. MPInfra_p_ManagementPackInstall failed with
exception:
Cannot resolve identifier EnterpriseVault!Veritas.EnterpriseVault.MonitoringProfile in the context of management pack
Microsoft.SystemCenter.SecureReferenceOverride. Unknown alias: EnterpriseVault"
At line:1 char:1
+ $MP.AcceptChanges()
+ ~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ManagementPackException

Has anyone ever had a similar problem?

Thank you.

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,417 questions
{count} votes

Accepted answer
  1. anthony strother 336 Reputation points
    2023-06-22T12:14:09.41+00:00

    Morning, try this:

    Export the Microsoft.SystemCenter.SecureReferenceOverride

    make a backup copy

    Use NotePad++ to edit the MP

    Use Find to locate EnterpriseVault

    NotePad++ will highlight the lines that encompass the section.

    Use you mouse to select those lines and delete them.

    Delete any blank lines that were left

    Increment the last digit of the version number of the Microsoft.SystemCenter.SecureReferenceOverride

    save the file and reimport it.

    Try once again the delete the MP you want to remove.

    Hope this helps.

    Tony


1 additional answer

Sort by: Most helpful
  1. anthony strother 336 Reputation points
    2023-06-22T12:07:12.28+00:00

    Morning, try this.

    export the MP, make a backup copy

    use Notepad++ to open and edit

    Use find to locate the MP EnterpriseVault.

    Notepad++ will highlight the section, lines that encompass the MP.

    Use your mouse to select those lines and then delete them and any blank line that is left.

    Modify the Version number of the Microsoft.SystemCenter.SecureReferenceOverride by incrementing the last number of the version.

    Reimport it and try again the delete the EnterpriseVault MP.

    Hope this works for you.

    Tony