what is the command in powershell in order for me to get a management pack ID of a specific management pack? SCOM 2019 UR4

JCC 101 Reputation points
2022-11-15T15:52:23.747+00:00

I am trying to find the command that shows me the management pack ID for a management pack with the display name of "ProtectOrg Endpoint Manager Management Pack". I run the get-scmmanagementpack -displayname 'ProtectOrg Endpoint Manager Management Pack' and it does not provide the ID of the MP.

The reason I need the ID is for I can force delete the Management pack from the Operations manager DB.

System Center Operations Manager
System Center 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,602 questions
0 comments No comments
{count} votes

Accepted answer
  1. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2022-11-15T15:59:02.82+00:00

    Hi @JCC ,

    try using:

    Get-SCOMManagementpack | select Name, DisplayName, ID  
    

    or even better, with:

    Get-SCOMManagementpack | Where-Object {$_.DisplayName -eq "ProtectOrg Endpoint Manager Management Pack"} | select Name, DisplayName, ID  
    

    or

    Get-SCOMManagementpack | Where-Object {$_.DisplayName -like "*Endpoint*"} | select Name, DisplayName, ID  
    

    You will get somwething like this:

    260588-image.png

    I hope I could help out!

    ----------

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

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.