locked
Can I use install-managementpack with more than one mp? RRS feed

  • Question

  • I'm trying out the install-managementpack cmdlet and I've been able to do it successfully when entering the path for only one MP. However, when I try and enter two or more mp's it fails.  Does anyone know if we can use this cmdlet for more than one mp?

    Thanks,
    Tom
    Wednesday, March 17, 2010 2:48 AM

Answers

  • Hi,

    you can use something like that :

    To install library

    Get-ChildItem –Path C:\MPs –filter *Library.mp |
    ForEach-Object
      {Install-ManagementPack –filePath $_.FullName}

    To install MP :
    Get-ChildItem –Path C:\MPs –filter *200?.mp |
    ForEach-Object
      {Install-ManagementPack –filePath $_.FullName}

    This information is from this article :
    http://technet.microsoft.com/fr-fr/magazine/2008.08.scom.aspx

    Don't find same in US version.. sorry..

    Regards,
    JF BERENGUER MVP System Center Operations Manager MCSE, MCT, MCSA messaging, NEXTEC SYSTEMS http://actelia.spaces.live.com/
    • Marked as answer by martit01 Tuesday, March 23, 2010 1:05 AM
    Wednesday, March 17, 2010 9:35 AM

All replies

  • Hi,

    you can use something like that :

    To install library

    Get-ChildItem –Path C:\MPs –filter *Library.mp |
    ForEach-Object
      {Install-ManagementPack –filePath $_.FullName}

    To install MP :
    Get-ChildItem –Path C:\MPs –filter *200?.mp |
    ForEach-Object
      {Install-ManagementPack –filePath $_.FullName}

    This information is from this article :
    http://technet.microsoft.com/fr-fr/magazine/2008.08.scom.aspx

    Don't find same in US version.. sorry..

    Regards,
    JF BERENGUER MVP System Center Operations Manager MCSE, MCT, MCSA messaging, NEXTEC SYSTEMS http://actelia.spaces.live.com/
    • Marked as answer by martit01 Tuesday, March 23, 2010 1:05 AM
    Wednesday, March 17, 2010 9:35 AM
  • well, if you type help on the command you can see it's syntax.  That will tell you for sure.
    Microsoft Corporation
    Wednesday, March 17, 2010 3:17 PM