PowerShell Using Threads in C# to Launch a Process and Read Output Streams

The other day I wanted to write a PowerShell script that required repeatedly launching an application to process a list of items. The application needed to capture both stdout and stderr from the application so that I could echo that information to my log file for future reference. Seems like something that would be pretty…

2

System Center Operations Manager (SCOM) Overrideable Parameters Listing Tool

This article is about a System Center Operations Manager (SCOM) tool that I created for listing the overrideable parameters available in a particular Management Pack. The tool outputs an HTML document containing a table of all discoveries, rules and unit monitors in the specified Management Pack with their associated overrideable parameters. Here are a few…

1

System Center Operations Manager (SCOM) Knowledge Article Extraction Tool (with MAML to HTML transform)

This article describes a simple .Net command line program that can be used to extract System Center Operations Manager (SCOM) R2 Knowledge Articles from a Management Pack into an HTML file. The program utilizes an XLST transform that converts the Knowledge Article MAML into HTML. Have you ever been working on a Management Pack and wanted…

3

Maintaining State in SCOM Scripts

This post describes a method for maintaining state across script executions in a SCOM Management Pack. This method is appropriate for holding a small amount of numeric or string information (such as timestamps or high water marks). The approach mimics what was used in MOM 2005, so it may also be useful for scripts that…

1

Notes on Using System.Performance.DeltaValueCondition

This post is about some interesting things I discovered when trying to use System.Performance.DeltaValueCondition as part of a workflow in a SCOM Management Pack. The purpose of the Management Pack is to monitor the health of an ETL process for a data warehouse. The customer wanted to be alerted when certain record counts processed by…

1

SCOM Product Connector Notes

Updated: The sample code (see attachment) has been updated for SCOM 2012 R2. I had the opportunity to build a simple product connector for System Center Operations Manager 2007 last week. A product connector is used to forward alert information from OpsMgr to an external system.  This post describes how I built the product connector…

3