SCOMHelper PowerShell Module – A SCOM Admin’s Best Friend
There are a number of cool scripts that I’ve collected, borrowed, and written in my travels as a SCOM field engineer and PowerShell enthusiast. I decided to put them all together into one module for easier maintenance and use.
How to Analyze a SCOM Property Bag
From time to time I find myself writing PowerShell scripts for custom workflows: rules, monitors, tasks, etc. Often times the project at hand requires a property bag full of juicy data to be used in the workflow. There are a handful of other blogs that describe what a property bag is but here I’ll show …. Read More
Visual Studio ‘Failed to verify module reference’ Authoring SCOM Management Pack, VSAE
Today I’m writing about an elusive problem with a management pack that I was authoring recently. I was writing a generic datasource for a registry discovery; that is a discovery that will instantiate a class based on the existence of a registry key on the Target machine, and generic because I will use a single …. Read More
Export SCOM Rule and Monitor Knowledge Articles with PowerShell
This has been baked into the SCOMHelper PowerShell module available here. Related: How to Get Knowledge Article from a SCOM Alert with Powershell This will output workflow information (including Knowledge Article content) to an HTML report or CSV file. Script accepts one or more (or all) management pack objects as input. Can export from SCOM using …. Read More
SCOM Operations Manager Shell PowerShell Error When Launched as Administrator
Sometimes when the Operations Manager Shell is opened as an Administrator you will see the error in the screenshot below. I believe this has to do with how User Account Control (or UAC) is configured. The “Start in” parameter on the shortcut is ignored and the shortcut is unable to locate the startup scripts. “.\OperationsManager\Functions.ps1 …. Read More
SCOM Printer Monitoring Management Pack Supplement (Updated: Windows Server 2003, 2008, 2012, 2016)
Back in 2010 Steve Rachui posted a fantastic management pack which added support for monitoring Windows 2003 and 2008 print servers. The original post is located here so you can read all about the functionality: In summary: “Printer MP Supplement The focus for building out this MP supplement was to offer individualized printer monitoring. Further, …. Read More
Install Standalone CA (Certificate Authority) on Windows Server 2012 R2 for use with Operations Manager
After looking around a bit I couldn’t find a decent tutorial that addressed this specific scenario (not one that demonstrated Powershell anyway). I ended up writing this for a client who didn’t have their PKI infrastructure sorted out yet. I prefer to use Powershell as it is much faster and efficient for these steps. (Just …. Read More
Set Primary and Failover Management Servers for Agent Managed Computers with Powershell
Here’s an easy script to set the primary and secondary management servers for all agent managed computers in your management group. Just run this on any management server: *Note: this script works well for agents that have never been assigned parent/failover with PowerShell. Once you use PowerShell to assign parents, it becomes problematic to assign …. Read More