Quick note: PoSh function to show discovery sources for SCOM class properties

This week, I needed to troubleshoot some properties, that did not get discovered. For this, I needed to know, which discovery rules are responsible for discovering these particular properties. I did not want to search all MPs for that, so I wrote a small function, that helps me to gather this information: This function creates…


Creating helpful HTML reports from SCOM Management Packs

I guess, that almost every SCOM Admin get some kind of these questions from an Application owner every now and then: Can I get a readable report of all workflows stored in a Management Pack? Oh and while we at it, can you please include: All override able parameter and their current (default) thresholds All…


How is the path property for a SCOM class instance created?

Recently a colleague asked me about a blog post I wrote some time ago regarding calculating GUIDs of SCOM objects: https://blogs.technet.microsoft.com/dirkbri/2015/06/11/how-are-guids-in-scom-and-scsm-calculated/ He wanted to calculate the GUID for a specific logical disk. Per the post, this requires the following data to be available to calculate the GUID of the specific instance: GUID (ID) of the…


Testing Log Analytics HTTP Data Collector API limits with PowerShell

Recently we announced a new API for uploading quasi any data from anywhere to OMS (Log Analytics) as long it is presented to OMS in a non-nested JSON format. See these excellent articles for more details: https://blogs.technet.microsoft.com/msoms/2016/08/30/http-data-collector-api-send-us-data-from-space-or-anywhere/ https://azure.microsoft.com/de-de/documentation/articles/log-analytics-data-collector-api/ I was curious about the performance of this API and wanted to know: What’s the maximum data…


Creating an Azure OMS workspace in less than 30 seconds

If you want to play with OMS it might be helpful and necessary to create new workspaces automatically (and remove them after testing). I am currently playing with the Log analytics http data API and need to create OMS workspaces quite often. This is how I do it: There are multiple ways of creating resources…


Tips for writing good PowerShell scripts for OpsMgr Workflows – Part 2

This is part 2 of my little series around writing good PowerShell scripts for OpsMgr workflows. You can find the other part(s) here: Tips for writing good PowerShell scripts for OpsMgr Workflows – Part 1 This post focuses on just one topic: How do I load the OpsMgr module within an OpsMgr PowerShell workflow the…


Retrieving SCOM DB Information via SDK without Management Server access

This is just a quick post, based on an interesting question one of my colleagues asked the other day: “How can I retrieve the SCOM database names and SQL server names (incl. instances) from a SCOM console running on some client without having access to one of the SCOM Management Server itself?” My usual way is to…


Exporting the SCOM class hierarchy to XML

SCOM uses an object orientated data model and builds an internal, extensible class (type) hierarchy: Each class can have specific properties (which will be inherited to child classes) and relationships to other classes. The depth and breadth of this class hierarchy depends on the number of imported Management Pack. “I know that!”, you might say….


Programmatically resetting SCOM Monitors

Resetting SCOM monitors programmatically through the SDK is a useful task and can be used for multiple purposes like Resetting old (outdated) monitor states. For very old monitor states there might be no alert available anymore (because someone closed the alert without fixing the root cause (see post on Alert management scenarios) and maybe even…