KB: How to remove the OpsLogix VMware Management Packs

If you want to cleanup your SCOM environment by uninstalling the OpsLogix VMware Management Packs you can use the PowerShell script below.

1. Uninstall Collectors

Before we can continue to remove the Management Packs we need to uninstall any OpsLogix VMware Collector from the Management Servers. To do this follow the steps below:

1) Open the SCOM console

2) Open the view : OpsLogix -> VMware -> VMware Collector -> State VMware Collector Service

3) Select all targets displayed and press on the task "OpsLogix Uninstall VMware Collector Task" in the right task pane.

4) continue to execute the task(s)

2022-03-16_08-43-08

 2. Uninstall the Management Packs

Notice: Any dependent override Management Pack must be removed first
else some management packs will fail to uninstall.

Run this script on a SCOM management server using a SCOM administrator account.

## ================================================================
## Remove all OpsLogix VMWare Management Packs from SCOM
## ================================================================
## Notice: Any dependent override Management Pack must be removed first
## else some management packs will fail to uninstall
## ================================================================
import-module operationsmanager

$Mps = "OpsLogix.IMP.VMWare.vSan.Dashboards",
"OpsLogix.IMP.VMWare.vSan",
"OpsLogix.IMP.VMWare.Templates",
"OpsLogix.IMP.VMWare.Reports",
"OpsLogix.IMP.VMWare.RansomwareVulnerability.Monitoring*.Groups",
"OpsLogix.IMP.VMWare.RansomwareVulnerability.Monitoring*",
"OpsLogix.IMP.VMWare.Monitoring.Groups",
"OpsLogix.IMP.VMWare.Monitoring",
"OpsLogix.IMP.VMWare.Licensing.Monitoring",
"OpsLogix.IMP.VMWare.Hardware",
"OpsLogix.IMP.VMWare.Guest.Monitoring",
"OpsLogix.IMP.VMWare.Dashboards",
"OpsLogix.IMP.VMWare.ConfigurationDashboard",
"OpsLogix.IMP.VMware.Collector",
"OpsLogix.IMP.VMWare.CapacityAnalysis.Dashboards",
"OpsLogix.IMP.VMWare.CapacityAnalysis",
"OpsLogix.IMP.VMWare.Appliance.Monitoring",
"OpsLogix.IMP.VMWare"


$Mps | Get-SCOMManagementPack | Remove-SCOMManagementPack

## Check to see the MPs are removed
Get-SCOMManagementPack | where {$_.Name -like 'OpsLogix.IMP.VMWare*'} |  ft Name