Quantcast
Viewing all articles
Browse latest Browse all 158

SCOM 2012 and 2016 Unsealed MP Backup

 

Image may be NSFW.
Clik here to view.
image

This is a management pack that I use in every customer environment.  You *NEED* to backup your unsealed MP’s.  This will allow you to quickly recover from a mistake, without having to restore your databases from a backup.  Over the years, I have seen many customers accidentally delete workflows, mess up their RunAs accounts, break AD integration, or break their notifications.  All of these things are stored in unsealed MP’s.  We really need to back them up, with a daily history.  The amount of space needed is very small.

 

This is an updated version of the community MP from SystemCenterCentral.com written by Neale Brown, Derek Harkin, Pete Zerger and Tommy Gunn, located at:  http://www.systemcentercentral.com/pack-catalog/backup-unsealed-management-packs-opsmgr-2012-edition/

 

It contains a single rule which now targets the “All Management Servers Resource Pool” which will give this workflow high availability.

Image may be NSFW.
Clik here to view.
image

 

The rule runs once per day (24 hours) and executes a PowerShell script.

You can edit the Write Action configuration for the number of days, and the share location, or local directory:

Image may be NSFW.
Clik here to view.
image

 

This will create these directories if they do not exist, either a local path on the management server, or on a share you provide as above.

 

Image may be NSFW.
Clik here to view.
image

 

It will log events to the SCOM event log for tracking:

 

Image may be NSFW.
Clik here to view.
image

Image may be NSFW.
Clik here to view.
image

 

This script will run on one of your SCOM management servers, and will execute as the SCOM Management Server Action Account by default.  If you want to specify a specific account, there is a RunAs profile included.  You will need to use an account that has SCOM admins rights to the SDK, and read/write access to the directory or share that you choose.

Image may be NSFW.
Clik here to view.
image

 

 

Changes I made:

  • Supports multiple management groups exporting to the same share path
  • Add start and completion logging with runtime and whoami.
  • Make SCOM management group connection more reliable with debug logging

 

You can download the MP here:

https://gallery.technet.microsoft.com/SCOM-2012-and-2016-2ccc45c0


Viewing all articles
Browse latest Browse all 158

Trending Articles