What are the steps to update a sealed custom MP ?
Best Answer
-
Stephane_Bouillon Customer Advanced IT Monkey ✭✭✭After searching hi and low, I couldn't find any issue with the MP, so what I did with the help of @john_doyle was edit the xml with a text editor, and then sealed the MP using PowerShell, this finally allowed me to import the MP
$SMDIR = (Get-ItemProperty 'hklm:/software/microsoft/System Center/2010/Service Manager/Setup').InstallDirectory<br>Set-Location -Path $SMDIR<br>If (!(Get-Module –Name “System.Center.Service.Manager”)) { Import-Module ".\Powershell\System.Center.Service.Manager.psd1" }
cd "C:\Sources\Custom Management Packs"
Protect-SCSMManagementPack -ManagementPackFile .\xml\Custom.Incident.ClassTypes.xml -CompanyName MyCompany -KeyFilePath .\Management\mpprivatekey.snk -Copyright 2018 -OutputDirectory .\sealed
([system.reflection.assembly]::loadfile("C:\Sources\Custom Management Packs\sealed\Custom.Incident.ClassTypes.mp")).FullName<br>
0
Answers
Checkout the steps below:
This assumes you have already created the MP, sealed it, and imported it into SCSM 2012:
1) Export the sealed MP from SCSM, you will now have the MP as an .xml file.
2) Make your changes to the MP .xml file, if using the Authoring Tool the version should increment automatically but if editing the MP manually remember to increment the version number each time.
3) Seal the MP .xml file with the same key file as you used before so that it is now an .mp file, you can do this within the Authoring Tool or via PowerShell.
4) Import the sealed MP .mp file into SCSM
That's it, I overwrite the MP that is already in SCSM, I don't delete them before importing the next version of it.
Cheers
Joe
I just reused the PowerShell that was created by our implementation partner before, not 100% sure if it is correct. Could you give me the syntax on how to do it, in case there is an error ?
Stephane
What I do then, is edit the EMM.ClassTypes.Incident.Extension.Customproperties and click the "Create property..." button, and give it a name "Actionscript". This results in yet another error
How can I move forward with this ?