Script: Export Unsealed Service Manager Management Packs

Customizations to Service Manager are stored in unsealed management packs. These should be backed up. These can be exported from Service Manager and stored in a safe location. The process to export unsealed management packs from the Service Manager console is manual and each have to be exported one by one. A better way to do this is to use a script to export all un-sealed management packs.

There are several scripts out there that can do this but most are for older versions of SCSM. I have recently updated one of these scripts. It was created by Microsoft MVP and one of the top Service Manager experts Anders Asp. Here is his blog with the original script: http://www.scsm.se/?p=227

I have updated the script to work with the latest SCSM PowerShell CMDlets and have tested it with SCSM 2012 R2 UR7.

The script is named: ExportUnsealedSCSMMPs.ps1

You can download the script locally on a Management Server

Edit the script and change “C:\Unsealed SCSM MPs\” to a directory on your server. Be sure to leave the “\” at the end.

Run the script from an elevated PowerShell window on a Management Server by typing

.\ExportUnsealedSCSMMPs.ps1

You should see the following output:

clip_image001

The unsealed MP’s will be loaded in a folder with the current date as seen in the following screenshot:

clip_image002

Note: Old folders will need to be manually cleaned up. You can also schedule this using Task Scheduler.

This script can be downloaded here:

https://gallery.technet.microsoft.com/Export-Unsealed-Service-43602dd4

Read more