As per in OpsMgr 2007, exporting sealed MPs in XML format in Operations Manager 2012 is very easy. You just add to run the the following command in the Operations Manager Shell :
Get-SCManagementPack | Export-SCManagementPack -Path “D:\Temps\ExportSealedMP”
For the non-sealed MPs, here is a short script you should save in a ExportNonSealedMP.PS1 file (this one is working with OpsMgr 2007 and 2012):
- param ($MGTServerName)
- add-pssnapin “Microsoft.EnterpriseManagement.OperationsManager.Client”;
- set-location “OperationsManagerMonitoring::”;
- new-managementGroupConnection -ConnectionString:$MGTServerName;
- set-location $MGTServerName;
- $mps = get-managementpack | where-object {$_.Sealed -eq $false}
- foreach ($mp in $mps)
- {
- export-managementpack -managementpack $mp -path “D:\Temp\Backup”
- }
ExportNonSealedMP.PS1 -MGTServerName YourServerName
This posting is provided "AS IS" with no warranties.
No comments:
Post a Comment