Share via


Converting a sealed management pack to readable XML

Ever wanted to dig into a management pack but could not because it is sealed? One workaround is to import the management pack into a management group and then export it. There is a much quicker way to do this using PowerShell and the SDK.

Attached is a small script that will do the trick. The prerequisite for this script to work is that you have the OpsMgr console or Management server and PowerShell installed.

The script is attached to this post.

Here is how you can run the script to get the XML representation of a sealed MP:

powershell d:\MpToXml.ps1 -mpFilePath:'d:\Microsoft.Exchange.Server.2003.Monitoring.mp' -outputDirectory:'d:\'

When importing management packs into a management group, you should still use the sealed version as it provides a lot of benefits for upgrades and rolling back changes compared to unsealed management pack which you can easily modify.

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included scripts are subject to the terms specified at
https://www.microsoft.com/info/cpyright.htm

 

MpToXml.zip

Comments

  • Anonymous
    August 15, 2007
    This is a gem!  I didn't think this was supposed to be possible!Keep up the fantastic work, I've been forwarding this info to the guys.See Ya!-Jess
  • Anonymous
    October 18, 2007
    The comment has been removed
  • Anonymous
    April 07, 2008
    The comment has been removed
  • Anonymous
    April 11, 2008
    If your working with OpsMan you may well have already come across this handy script from Boris Yanushpolsky
  • Anonymous
    June 13, 2008
    Boris Yanushpolsky has this great script (PowerShell) solution to convert sealed MPs to XML.  I
  • Anonymous
    July 12, 2008
    Check out Boris Yanushpolsky's blog ( http://blogs.msdn.com/boris_yanushpolsky ). Boris is an SCOM
  • Anonymous
    October 02, 2008
    Main Downloads page (catalog, documentation) http://technet.microsoft.com/en-us/opsmgr/bb498232.aspx
  • Anonymous
    October 23, 2008
    Hello, my name is Vlad Joanovic and I'm a program manager at Microsoft working on the System Center team
  • Anonymous
    February 26, 2009
      Voici une liste de liens trĂ©s pratique sur tous les sujets SCOM , installation , configuration...
  • Anonymous
    March 25, 2009
    This is fantastic and easy to use.Thanks fo rthe script.-edmond
  • Anonymous
    September 30, 2009
    Hi Boris,Thanks a lot. I was searching for this one for a long time. Your script is very helpful and easy to use.Thank you,Regards,Prabu