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…

0

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….

1

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…

2

SCOM alert management scenarios

The scenario table was completely updated (bug fixes and clarification) on 10/24/2016. Almost a year ago I wrote a short blog post about SCOM alert handling/management and how I do it . After writing the initial post back in 2015 my valued colleague Nathan Gau has written an excellent 3 part post about several process related…

2

SCOM Management Server needs contact to writeable DC (no RODC)

This is just a short info for the rare case that someone will ever stumble upon this issue like I did today: A customer told me that he could not connect to his Management Server anymore. Looking at the system itself I saw a lot of SDK service crashes (as well in the Operations Manager…

0

Using SDK criteria objects in PowerShell for optimized SCOM data queries

Querying data (Agents, MonitoringObjects, Events, Alerts etc.) in SCOM with PowerShell is a piece of cake. Simply use get-scomalert, get-scomevent or some other suitable Cmdlet and you are done.   Good (efficient) vs. bad (inefficient) data queries But creating performance and resource optimized queries can be quite challenging! What do I mean with that? Let’s…

0