Convert a management pack to XML / unseal a management pack


In my previous blog I wrote a step by step guide on how to seal a management pack. Say you have a custom created management pack, containing groups and such, which is sealed. Now you need to add another server to this group, which isn’t possible because it is sealed. To unseal you need to run a pretty simple command and a Powershell script, and here’s how:

1. On your management server, create a folder named MpToXml on the C-drive.

2. Copy the sealed management pack you want to unseal into this folder.

3. Create a .ps1 (Powershell) script containing the following (or download it from here):


$assembly = [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.EnterpriseManagement.OperationsManager")

$mp = new-object Microsoft.EnterpriseManagement.Configuration.ManagementPack($mpFilePath)

$mpWriter = new-object Microsoft.EnterpriseManagement.Configuration.IO.ManagementPackXmlWriter($outputDirectory)


4. Open Operations Manager Shell

5. Use the following syntax for unsealing the management pack:

C:\MpToXml\MpToXml.ps1 -mpfilepath:’C:\MpToXml\’ -outputdirectory:’C:\MpToXml’

In my case that is:

C:\MpToXml\MpToXml.ps1 -mpfilepath:’C:\MpToXml\’ -outputdirectory:’C:\MpToXml’ (as shown below)


If all goes well, you should see this line: C:\MpToXml\Microsoft.Windows.Library.xml (as shown below)…


… and you should have the .xml file in your MpToXml folder:


The management pack is now unsealed and you can import it into Operations Manager, make the changes and then seal it again (using this guide). Simple as that!

By | 2017-08-22T13:04:36+00:00 September 25th, 2012|Operations Manager (SCOM), Service Manager (SCSM)|0 Comments

About the Author:

Michael Skov
Yet another guy loving the System Center products. My primary focus is on Operations Manager, which i have worked with for some years now - still loving it.Certifications:Microsoft Certified Solution Expert Private Cloud (MCSE)Microsoft Certified Solutions Associate Windows Server 2008 (MCSA)Microsoft Certified Technology Specialist Windows Server 2008 R2, Server Virtualization

Leave A Comment