Search


Sponsors

Operations Manager 2007: Export Management Packs

Operations Manager 2007 In Operations Manager 2005, there was a executable called "ManagementModeUtil.exe" to export management packs to file, using the command line. This was especially useful in situations where you would wanna do a separate backup of your management packs, instead of the whole OnePoint database. At first sight, in Operations Manager 2007, there is no tool available to do just that. Fortunately, you can use PowerShell for this. Here you find a sample Powershell script that exports all management packs that have SQL in their name:

param ($serverName)

add-pssnapin "Microsoft.EnterpriseManagement.OperationsManager.Client";

set-location "OperationsManagerMonitoring::";

new-managementGroupConnection -ConnectionString:$serverName;

set-location $serverName;

$sql_mps = Get-ManagementPack | where{$_.Name -match 'SQL'}

foreach($mp in $sql_mps)
{
export-managementpack -ManagementPack:$mp -Path:"c:\"
}

Copy this contents to a file called "ExportManagementPacks.ps1" and run the following command to start the actual script:

  • Powershell.exe ExportManagementPacks.ps1 -ServerName:localhost




  •   
    Remember personal info?

    Emoticons / Textile

    Before sending a comment, you have to correctly answer a simple question you know the answer to. This is a countermeasure against automated spam bots.
     

      ( Register your username / Log in )

    Notify:
    Hide email:

    Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.