Category Archives: SCOM

SCOM – Powershell Monitor

By | October 25, 2023

Hi guys, I was working on a custom monitor at one of my customers using a powershell script. It involved creating a dataset to store some variables coming from a SQL database. When trying to save the monitor I got an error stating: Incorrect expression specified: $Data = New-Object System.Data.dataset A quick search pointed at… Read More »

SCOM – Powershell Recovery Action – Stopped Windows Service

By | November 12, 2019

Hi, Today I was at a customer who had a really specific question regarding monitoring of Windows Services with Operations Manager (SCOM). We had already set up some basic recovery actions which restart the service automatically after it was stopped. For some other services the customer wanted to add extra functionality: The recovery action should… Read More »