Here’s a handy PowerShell script I put together a couple of years ago with some SDK magic I learned from MOW. The following PowerShell script will unseal multiple sealed management pack files (.mp files) in a directory structure and output the unsealed xml file to the directory of your choice. The script will actually parse the directory you point it to recursively, which means it will find .mp files in all the subdirectories and export to the directory you specify. Also, it will run from a standard PowerShell prompt…no OpsMgr Command Shell required. However, you do need to have the Operations console on the machine where you run the script.
Example: .\MpToXml.ps1 C:\Software\MPs\sealed C:\Software\MPs\unsealed
More PowerShell Resources for System Center
We have a growing collection of PowerShell samples for System Center and general administration. You can find them in the Downloads section and many on this page – PowerShell Scripts for System Center (Master Collection)
Follow System Center Central (via Twitter and RSS)