Blog Post

System Center Blog
1 MIN READ

PowerShell Script to Backup OpsMgr Overrides and Unsealed Management Packs

System-Center-Team's avatar
System-Center-Team
Brass Contributor
Feb 15, 2019
First published on TECHNET on Apr 15, 2012

Attached is a PowerShell script that can be used to backup overrides and unsealed Management Packs from Operations Manager 2012, as well as OpsMgr 2007 R2 . This script is an update to the PS script that my friend Boris Y had written a while ago.


The updates include…



  1. Runs on Windows PowerShell (version 1 and 2)

  2. Runs on the Operations Manager 2012 PowerShell


The product team recommends backing up unsealed MPs on a weekly basis. By using windows task scheduler and this PowerShell script you can automate the backup jobs to run on a periodic basis.


Posting this script on the blog as I will be demoing it at MMS 2012 during my session, and want to make it avaliable to everyone.


Here is how you can run the script from command line: C:\BackupMPs.ps1 -rmsName $env:computername -folderName c:\OMBackupMPs



Script is attached below


Thanks


Satya



https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/4616/00/00/03/49/22/80/BackUpMps.zip

Updated Mar 11, 2019
Version 4.0
No CommentsBe the first to comment