locked
How could I export all sealed mp to a folder? RRS feed

Answers

  • Hi,

    In the example you give, just replace $false by $true:

    $mps = get-managementpack ¦ where-object {$_.Sealed -eq $true}
    foreach($mp in $mps)
    {
    export-managementpack -managementpack $mp -path <Directory>
    }

    Regards.


    Supervize Me ©
    • Marked as answer by Graham Davies Monday, March 7, 2011 8:25 PM
    Monday, March 7, 2011 12:03 PM
  • Per Francois suggestion, this would _find_ the sealed ones, but it will export them as XML or not export them if they are hard-sealed (not exportable)

    If Entelekia is looking for a _backup_ of the imported sealed MPs, then OM does not provide a way to recover what you have imported.  Several great products out there do a great job at creating an archive of the changes made to your OM production environment - the one that comes to mind is Silect MP Studio.

    Otherwise, archive would involve keeping a copy of every management pack downloaded (in MSI form is easier) as well as every override change made before import into the live production monitoring environment.


    Microsoft Corporation
    • Marked as answer by Graham Davies Monday, March 7, 2011 8:25 PM
    Monday, March 7, 2011 5:15 PM

All replies

  • Hi,

    In the example you give, just replace $false by $true:

    $mps = get-managementpack ¦ where-object {$_.Sealed -eq $true}
    foreach($mp in $mps)
    {
    export-managementpack -managementpack $mp -path <Directory>
    }

    Regards.


    Supervize Me ©
    • Marked as answer by Graham Davies Monday, March 7, 2011 8:25 PM
    Monday, March 7, 2011 12:03 PM
  • Per Francois suggestion, this would _find_ the sealed ones, but it will export them as XML or not export them if they are hard-sealed (not exportable)

    If Entelekia is looking for a _backup_ of the imported sealed MPs, then OM does not provide a way to recover what you have imported.  Several great products out there do a great job at creating an archive of the changes made to your OM production environment - the one that comes to mind is Silect MP Studio.

    Otherwise, archive would involve keeping a copy of every management pack downloaded (in MSI form is easier) as well as every override change made before import into the live production monitoring environment.


    Microsoft Corporation
    • Marked as answer by Graham Davies Monday, March 7, 2011 8:25 PM
    Monday, March 7, 2011 5:15 PM
  • But I don't know why I can export to xml those sealed mps. You cannot export .mp files, but you can do it to xml ¿?.

     

    Cheers,


    El blog de SCOM2007 en español: www.entelekia.net/blog
    • Edited by Entelekia Wednesday, April 6, 2011 8:46 AM
    Wednesday, April 6, 2011 7:55 AM
  • Hi

    When you export a management pack from OpsMgr, you can only export as xml.

    If you want to open up a sealed management pack (.mp file), you can do so in the authoring console.

    Cheers

    Graham


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    Wednesday, April 6, 2011 8:37 AM
  • Thanks Graham for your reply.

    So if I will seal this xml mp, I will obtain the same mp that I have sealed in the console, ins't it?

     

    Cheers,


    El blog de SCOM2007 en español: www.entelekia.net/blog
    Wednesday, April 6, 2011 8:48 AM
  • Depends what we mean by "same".

    The functionality and contents will be the same.

    But the seal on the management pack won't be which does have implications.

    http://systemcentersolutions.wordpress.com/2010/04/14/unsealing-sealed-management-packs/

    Cheers

    Graham


    View OpsMgr tips and tricks at http://systemcentersolutions.wordpress.com/
    Wednesday, April 6, 2011 8:52 AM