Extracting information from a SCOM Management Pack

February 28, 2019 Leave a comment

On reddit someone on the SCOM channel asked how to pull specifically PowerShell script from a management pack. If you have a sealed mp file first it will need to be extracted to an xml file. To do this we will use the power of MP Viewer a utility that I use almost every day.

MP Viewer can be downloaded from Microsoft TechNet Gallery here.

Please note the SCOM Console will need to be installed on the system you plan on running MP Viewer from. On that system fire up MP Viewer and open and MP File. once it has finished loading the mp file, click File –> Unseal/Unpack Management Pack option, select the destination where the file will go, I usually keep the default name of the xml file and put it in the same folder where the MP file is found.

Also check out Jonathan Almquist blog he wrote a similar script back in 2012 http://blog.scomskills.com/output-list-of-scripts-contained-in-a-management-pack/

The easiest way to get all the scripts from the xml file would naturally be to run the PowerShell script which is saved to my C:\Temp3\scriptsfrommps.ps1 below:

[xml] $SQLMP = Get-Content -Path C:\temp3\Microsoft.SQLServer.2012.Monitoring.xml

$ScriptName = $SQLMP.SelectNodes(“//ScriptName”).”#text”

$ScriptBody = $SQLMP.SelectNodes(“//ScriptBody”).”#text”

for ($i=0; $i -lt $SQLMP.SelectNodes(“//ScriptName”).count; $i++)


$ScriptBody[$i] >> $ScriptName[$i]


Now my C:\Temp3 folder will be littered with the scripts from the SQL Server 2012 Monitoring MP. Just have to change the first line to which ever management pack that you would like to inspect.



Its about time for an update 2019!!

February 28, 2019 Leave a comment

After being out of the blogging game for a few years, I am going to be dusting off my SCOM Blog, just a little bit for now. Working for a bank kept me from blogging/speaking and or helping write books. I am not saying that I will be doing all of those things like I use to when I was a Microsoft MVP but we will see.

After almost three years of living in the Houston Texas area, I have moved to San Antonio Texas back in September 2017, to work for Rackspace full time. I am part of a small team that keeps up a 30,000 plus SCOM Client environment.

More content to come!

Categories: Uncategorized

Update Rollup 8 Released for SystemCenter

October 30, 2015 Leave a comment

For Operations Manager UR8 has been released for 2012 SP1 and 2012 R2.

Update Rollup 8 for System Center 2012 Operations Manager Service Pack 1

Update Rollup 8 for System Center 2012 R2 Operations Manager

For a list of all System Center 2012 R2 links see below link.
Description of Update Rollup 8 for System Center 2012 R2

How to manage System Center Operations Manager using Groups 2015!

October 30, 2015 Leave a comment

Cameron Fuller has updated his white paper on managing Operations Manager using Groups. The new version is now available at: http://www.veeam.com/wp-manage-scom-using-groups.html 

Great read get it now!

System Center Universe APAC 2016 Announcement!

October 29, 2015 Leave a comment

Looks like System Center Universe APAC 2016 will be an even bigger event, hosted in both Malaysia and in Australia. Now that sounds like a fun trip! March 8 and 9 2016. For more information please see the official web site http://www.systemcenteruniverse.asia/

Categories: User Group Meeting Tags:

Spend your money Wisely

August 9, 2015 Leave a comment

This post is to support my friend and fellow MVP Tao Yang. The text below is written by him and I fully support it. Review it and feel free to comment below. Also make sure to subscribe to his blog, as he has been busier than a one legged man in an.. well you know what I mean.


Spend Your Money Wisely

spending_thumb As what I’d like to consider myself as – a seasoned System Center specialist, I have benefitted from many awesome resources from the community during my career in System Center. These resources consist of blogs, whitepapers, training videos, management packs and various tools and utilities. Although some of them are not free (and in my opinion, they are not free for a good reason), but large percentage of these resources I value the most are all free of charge.

This is what I like the most about the System Center community. Over the last few years, I got to know many unselfish people and organizations in the System Center space, who have made their valuable work completely free and open source for the broader community. Due to what I am going to talk about in this post, I am not going to mention any names in this post (unless I absolutely have to) . But if anyone is interested t know my opinion, I’m happy to write a separate post introducing what I believe are valuable resources.

First of all, I’m just going to put it out there, I am not upset, and this is not going to be a rant and I’m trying to stay positive.

I started working on System Center around 2007-2008 (ConfigMgr and OpsMgr at that time) . I started working on OpsMgr because my then colleague and now fellow SCCDM MVP (like I mentioned, not going to mention names) has left the company we were working for and I had to pick up the MOM 2005 to OpsMgr 2007 project he left behind. The very first task for me was to figure out a way to pass the server’s NetBIOS name to the help desk ticketing system and I managed to achieve this by creating a PowerShell script and utilised the command notification channel to execute the script when alerts were raised. I then used the same concept and developed a PowerShell script to be used in the command notification to send content rich notification emails which covered many information not available from native email notification channel.

When I started blogging 5 years ago, this script was one of the very first posts I published here. I named this solution “Enhanced SCOM Alert Notification Emails”. Since it was published, it has received many positive feedbacks and recommendations. I have since published the updated version (2.0) here:


After version 2.0 was published, a fellow member in the System Center community, Mr. Tyson Paul has contacted me, told me he has updated my script. I was really happy to see my work got carried on by other members in the community and since then, Tyson has already made several updates to this script and published it on his blog (for free of course):

Version 2.1: http://blogs.msdn.com/b/tysonpaul/archive/2014/08/04/scom-enhanced-email-notification-script-version-2-1.aspx

Version 2.2: http://blogs.msdn.com/b/tysonpaul/archive/2015/01/30/scom-enhanced-email-notification-script-version-2-2.aspx

This morning, I have received an email from a person I have never heard of. This person told me his organization has developed a commercial solution called “Enhanced Notification Service for SCOM” and I can request a NFR by filling out a form from his website. As the name suggests (and I had a look on the website), it does exactly what mine and Tyson’s script does – sending HTML based notification emails which include content rich information including associated knowledge articles.

Well, to be fair, on their website, they did mention a limitation of running command notifications that you have a AsyncProcessLimit of 5. But, there is a way to increase this limit and if your environment is still hitting the limit after you’ve increased it, I believe you have a more serious issue to fix (i.e. alert storm) rather than enjoying reading those “sexy” notification emails. Anyways, I don’t want to get into technical argument here, it’s not the intention of this post.

So, do I think someone took my idea and work from Tyson and myself? It is pretty obvious, make your own judgement. Am I upset? not really. If I want to make a profit from this solution, I wouldn’t have published out on my blog in the first place. And believe me, there are many solutions and proof-of-concepts I have developed in the past that I sincerely hope some software vendors can pickup and develop a commercial solution for the community – simply I don’t have the time and resources to do all these by myself (i.e. my recently published post on managing ConfigMgr log files using OMS would be a good commercial solution).

In the past, I have also seen people took scripts I published on my blog, replaced my name with theirs from the comment section and published it on social media without mentioning me whatsoever. I knew it was my script because other comments in the script are identical to my initial version. When I saw it, I have decided not to let these kind behavior get under my skin, and I believe the best way to handle it is to let it go. So, I am not upset when I read this email today. Instead, I laughed! Hey, if this organization can make people to pay $2 per OpsMgr agent per year (which means for a fully loaded OpsMgr management group would cost $30k per year for “sexy” notification emails), all I’m going to say is:


However, I do want to advise the broader System Center community: Please spend your money wisely!

There is only so much honey in the pot. You all have a budget. This is what the economist would call Opportunity Cost. If you have a certain needs or requirement and you can satisfy your requirement using free solutions, you can spend your budget on something that has a higher Price-Performance Ratio. If you think there’s a gap between the free and paid solution, please ask your self these questions:

  • Are these gaps really cost me this much?
  • Are there any ways to overcome this gap?
  • Have I reached out the the SMEs and confirm if this is a reasonable price?
  • How much would it cost me if I develop an in-house solution?

Lastly, I receive many emails from people in the community asking me for advise, and providing feedback to the tools I have published. I am trying my best to make sure I answer all the emails (and apologies if I have missed). So if you have any doubts in the future that you’d like to know my opinion, please feel free to contact me. And I am certain, not only myself, but other SMEs and activists in the System Center community would also love to help a fellow community member.

Categories: Uncategorized

System Center TechNet related Blog Posts to note

July 22, 2015 Leave a comment

There are a few blog posts to note from TechNet. This is just a small sample of important post of the past few days.


There is a new home page for PowerShell


Check this page to give feed back on the new landing page.

System Center Operations Manager Feedback Request

The operations manager product team is looking for feed back on Alert Criticality, with a very short survey. If you use Operations Manager on any kind of basis and work with Alerts please take the survey to give the product team some real world feedback.


Direct Link to Survey: http://aka.ms/criticality


System Center Service Manager 2012 R2 UR7

It is not released yet, they are just announcing the release date to the download center  which will be July 28th.


Security Threat Analysis – Using Operations Management Suite

This is a very nice run down on using OMS or Operations Management Suite to provide a security investigation example.