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…
- Runs on Windows PowerShell (version 1 and 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