Sealing a management pack is fairly easy (everything’s easy when you’re good at it, i know), but this can be a little tricky the first couple of times. Follow this guide and you should not encounter any problems!

To get started you need to download sn.exe and all referenced management packs. For OpsMgr 2007, these can be found in the Program Files\Operations Manager folder. For OpsMgr 2012, these can be found on the installation media. I have uploaded sn.exe and the management packs you need. Download them from here.

It is far easiest seal management packs from your management server, as you need the Operations Manager assembly files.

Let get started!

 

First, on C: (or wherever suits you) create a folder called SealMP. In this folder you create the following folders:

Input (the original XML file exported from Operations Manager)

Output (destination for the .mp file)

Key (folder containing the pair key file)

MPs (containing all management packs for referencing)

Place sn.exe in the root of the folder.

 

Next, we need to create the key file. Open a command prompt to do this, and execute the following command:

sn –k PairKey.snk (as shown below).

clip_image001[4]

 

Next, extract the public key to the file with this command: sn –p PairKey.snk PubKey (as shown below)

clip_image002[4]

These commands should give you these two files:

clip_image003[4]

Copy these files to the Key folder.

 

Next, copy all downloaded management pack files (.mp) to the MPs folder.

Next, export the management pack you want to seal from Operations Manager and place it in the Input folder.

Next, copy the MPSeal.exe from the SupportTools folder on the OpsMgr installation media. Note: MPSeal.exe from 2007 will NOT Work in 2012.

 

Last, open a commando prompt with the following syntax:

MPSeal.exe C:\SealMP\input\XML NAME.xml\ /I “C:\SealMP\MPs” /keyfile “C:\SealMP\Key\PairKey.snk” /Company “YourCompany” /Outdir “C:\SealMP\output”

 

In my case that is:

MPSeal.exe C:\SealMP\input\MPSealDemo.xml /i “C:\SealMP\MPs” /keyfile “C:\SealMP\Key\PairKey.snk” /Company “Coretech” /Outdir “C:\SealMP\output” (as shown below)

 

clip_image005[4]

 

That’s it! Now you should have a .mp file in the output folder:

image

Happy sealing!