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:\’ -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

Comments (11)

  1. Anonymous says:

    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!


  2. Anonymous says:


    is this Script is OK??

    I get a failure when i execute this script…and it don´t work..

    Can you help to resolve this problem?

    And can say me how i can Specify a run as account for a run as profile??

    Thank you…

  3. Anonymous says:

    The term ‘c:test.xml’ is not recognized as a cmdlet, function, operable program, or script file. Verify the term and t

    ry again.

    At line:1 char:12

    • c:test.xml  <<<< -mpFilePath: -outputDirectory: c:

    Can someone help me in this regard


  4. Anonymous says:

    If your working with OpsMan you may well have already come across this handy script from Boris Yanushpolsky

  5. Anonymous says:

    Boris Yanushpolsky has this great script (PowerShell) solution to convert sealed MPs to XML.&#160; I

  6. Anonymous says:

    Check out Boris Yanushpolsky&#39;s blog ( ). Boris is an SCOM

  7. Anonymous says:

    Hello, my name is Vlad Joanovic and I’m a program manager at Microsoft working on the System Center team

  8. Anonymous says:

    &#160; Voici une liste de liens trés pratique sur tous les sujets SCOM , installation , configuration…

  9. edmondng says:

    This is fantastic and easy to use.

    Thanks fo rthe script.


  10. Anonymous says:

    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,