Welcome to MSDN Blogs Sign in | Join | Help

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
http://www.microsoft.com/info/cpyright.htm

 

Published Thursday, August 16, 2007 12:44 AM by Boris Yanushpolsky
Filed under:

Attachment(s): MpToXml.zip

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# re: Converting a sealed management pack to readable XML

Wednesday, August 15, 2007 11:28 PM by JesseH

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

# re: Converting a sealed management pack to readable XML

Thursday, October 18, 2007 10:49 AM by Zied

hello,

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...

# re: Converting a sealed management pack to readable XML

Tuesday, April 08, 2008 4:10 AM by Narendra K.V

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: c:\MP\Microsoft.SQLServer.2005.Discovery.mp -outputDirectory: c:\

Can someone help me in this regard

narenkv@gmail.com

-Naren

# MP to XML

Saturday, April 12, 2008 6:27 AM by Aquilaweb - David Allen

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

# Converting a sealed management pack to readable XML

Friday, June 13, 2008 4:33 PM by Rod Trent at myITforum.com

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

# A Great place for SCOM scripts

Sunday, July 13, 2008 7:09 AM by Dario IT Solutions Blog

Check out Boris Yanushpolsky&#39;s blog ( http://blogs.msdn.com/boris_yanushpolsky ). Boris is an SCOM

# SCOM 2007 Useful Links

Thursday, October 02, 2008 1:57 PM by Dario IT Solutions Blog

Main Downloads page (catalog, documentation) http://technet.microsoft.com/en-us/opsmgr/bb498232.aspx

# Introduction

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

# Les meilleurs liens OPSMGR 2007

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

# re: Converting a sealed management pack to readable XML

Thursday, March 26, 2009 4:34 AM by edmondng

This is fantastic and easy to use.

Thanks fo rthe script.

-edmond

# re: Converting a sealed management pack to readable XML

Wednesday, September 30, 2009 2:42 PM by Prabu Selvarajan

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

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker