Backup All Unsealed Management Packs
In preparation to upgrade our instance from SCSM 2012 R2 to SCSM 2016, I wanted to backup all management packs in the current instance.Here is a PowerShell script to export all of the management packs to a backup directory. Alter at your pleasure.
Import-Module smlets
Get-SCManagementPack|where-object {! $_.Sealed}|Export-SCManagementPack -TargetDirectory c:\backup
This script requires smlets. You can get smlets from here: http://smlets.codeplex.com/
Use at your own risk, I take no responsibility or infer any warranty on this code.
Comments
Post a Comment