Blog Post

SCSM - Management Pack Reference/Dependency Checker

Dujon Walsham • Mar 31, 2019

Find out your MP dependencies, download them and import them all automatically!

Introduction

One of the biggest issues that we face when it comes to importing Management packs into SCSM (System Center Service Manager), is the long amount of dependencies in which we need in order for them to import successfully.

This normally requires us to manually look for these management packs which can normally be a very long administrative task, as well as a huge trial an error to see if not only you have the correct management packs but also to check if you have the correct version.

The SCSM Reference Checker script will perform the following

·Convert your MP to XML

·Read the references and output the result

·Download the required MPs

·Import them into SCSM

All of your dependency MPs will be downloaded into a separate created folder which you will be given the path to which will outline to which MP its dependencies belong to.


Note that the last two are really optional if you wish to have the script take over this entire process in an automated fashion, otherwise it will tell you exactly which management packs you require.



Current Issue Outlined

Below here is the issue you normally see in SCSM when it comes to checking to see if you can import your Management pack into SCSM


Figure 1.1 – Showing the error which you get from trying to import the Management Pack into SCSM

You can see in the Management Packs where it references the management pack and version in which you are missing, and further down will show more dependencies.

This can cause further effort to find and then to find out the MP which you are looking to retrieve also has a great list of dependencies.

Resolution From the Script

Convert your .MP to .XML

In order to actually read the details of the management pack you are looking to import, we need to convert this into an .XML first.


The first function in the script being Convert-MPtoXML will perform the following result for you below


Figure 1.2 – Successful exported conversion of your .MP to .XML

Read the Reference Dependencies

In all management packs the references are listed at the beginning, so the next function which is Read-MPReferences will parse the XML and then create an output file which you can also view manually if not wanting to have the script go further to automatically download these on your behalf

Figure 1.3 – This object shows the names of the Management Packs, the version of them and also the link to the https://systemcenter.wiki which contains the download location for them

Download the Management Packs

The next part if wanting to go ahead with the full automated process, this will be the function called Download-MP which will perform the following

·Browse each systemcenter.wiki link

·Search for the download link

·Download the Management packs to the output folder of your choice

Each management pack has the naming convention of <ManagementPackName>.<Version>.mp

Figure 1.4 – Result of the downloaded files and how long it took to download them

Import Management Packs

The final part of the script is to perform an import of the management packs

Which will collate the MPs from the location you chose to be the output and will then proceed to import them into SCSM after importing the CMDLets required.

Where To Download

This can be downloaded on the TechNet Gallery here

https://gallery.technet.microsoft.com/SCSM-Management-Pack-2283b497
by D Walsham 13 Dec, 2021
Looking through the current SQL Server topology and how it affects our decision
by D Walsham 07 Oct, 2021
Introduction
by D Walsham 06 Oct, 2021
Introduction
by D Walsham 12 Aug, 2021
All the parts of the series we went into great detail about how we analyse an end to end solution and how we would design a solution in which would allow us to build endpoints without SCCM being a dependency. Whilst we did this, there is another scenario which we have not touched on yet, which is the hybrid scenarios. In a perfect world ideally you would have your Azure Active Directory within the cloud, every machine meets the recommended requirements for Windows 10, everything is imported into Intune/Autopilot and everyone is happy. But we know this isn't realistic in all cases. Many organisations cannot just simply up and go from on-premise into the cloud therefore the checkpoint here is of course getting into hybrid solutions such as; Co-Management Between Intune and SCCM Hybrid AD with Azure AD and On-Premise AD syncing together These things can play a very interesting part in how you would tackle this if you envisage the next step in the blueprint is to be in a position in which you can build and manage endpoints soley within Intune. With this final part of the series we will go in-depth in how the common hybrid setups look like and how we go about moving into the next step of being able to manage and build devices without SCCM.
by D Walsham 29 Jul, 2021
In continuation from the previous part where we had discussed how we create the "on site" piece of the solution, this was the part which would allow us to get our endpoints into a state in which they would essentially be ready to go through the Autopilot process. Which leaves our next piece of the puzzle, to begin the configuration of the actual backend side that resides within our Endpoint Management console. And you will see how everything ties up together to satisfy the full end to end process of getting an unknown (or known) device to proceed thorough the whole workflow to be finally managed by Intune without the aid of SCCM taking part in any of the prerequisites or preparation at hand.
by D Walsham 15 Jul, 2021
In this part we are now going to look into the technical step by step points on how we put everything together. In the previous part we spoke about the structure of how we would asses whether a machine was actually ready to be built with Autopilot or not with a build checklist process which would step through all areas which would cover an endpoints eligibility. Now with everything planned out we finally want to step into making things reality by putting everything together.
by D Walsham 02 Jul, 2021
When it comes to managing your endpoints in endpoint manager, one of the things you may be looking to do is to get all of your Intune registered machines to also be enrolled as Autopilot devices. Now we can of course just have the deployment profile deployed to all machines and then hit the "Convert targeted machines to autopilot" but this might not necessarily be feasible for every client. We may want to perform some due diligence first so we can at least understand what devices in Intune are not in Autopilot.
Show More
Share by: