Check SCOM Maintenance Mode history for multiple servers

Some time ago I posted short article about how to check SCOM Maintenance Mode history for single machine. Today I would like to share with you a little bit more advanced script which helps to check multiple servers. SCOM Maintenance Mode history To get above output we need to run the script on SCOM server. Remember that not all maintenance mode history can be found there. It will show only …

PowerShell Tip of the Week: Get SCOM agent version remotely

In this short article you will find out how to get SCOM agent version. You can also check one of the previous articles about Microsoft Monitoring agent where you can check how to get other useful information like SCOM group name or management server. SCOM agent version If you have admin right in Operations Manager console then you can check this directly from SCOM server: Another way is to logon …

Get Microsoft Monitoring Agent settings remotely

Today I want to show you how to get Microsoft Monitoring Agent settings remotely using PowerShell function. This might be useful when you need to scan all servers in large scale environment to determine that configuration has been set properly. The Microsoft Monitoring Agent The Microsoft Monitoring Agent is a service used to watch and report on application and system health on a Windows computer. The Microsoft Monitoring Agent collects …

How to check SCOM Maintenance Mode history (version 2)?

Few months ago I added here simple script for checking SCOM maintenance mode history – link. I decided to adjust it a little bit and convert it into more advanced function. To get SCOM maintenance mode history remotely for some specific server basically we can run just this command: Usage: Function will create an object for each server and add it to $Results array. Object will contains the following properties: …

Get SCOM heartbeat alerts using PowerShell

Today I will show you how to get all SCOM heartbeat alerts. In this example we will gather those information from SCOM server remotely using PowerShell session. SCOM uses heartbeats to monitor communication channels between an agent and the agent’s primary management server. A heartbeat is a packet of data sent from the agent to the management server on a regular basis, by default every 60 seconds, using port 5723 …

Get list of unhealthy SCOM agents (grey state) using PowerShell

Today I want to show you how easily you can get the list of unhealthy SCOM agents using PowerShell. In this example I used Microsoft.Windows.Computer class for scanning all of those SCOM agents which availability state equals false: In results $SCOMArray you will find additional information like “Primary Management Server”, “last modified date” and check if it’s “in maintenance mode”. Script needs to be run on SCOM server. Final script: …

How to put servers in SCOM Maintenance Mode?

As some of you already know SCOM 2016 finally have a new feature called – “Maintenance Schedules“. It allows us to plan Maintenance Mode for several computer objects using GUI: For those who didn’t migrate yet their SCOM infrastructures to 2016 version it might be hard to schedule maintenance mode during planned activities like “weekend patching”.  I also had this problem so I developed a script and added it to task scheduler …

How to check SCOM Maintenance Mode history?

In this article I would like to show you quick and easy way to get detailed information about last SCOM maintenance mode. To gather SCOM MM history we have to use Operations Manager PowerShell cmdlets available here. After providing server name script will gather the following information: – Start Time – End Time – Scheduled End Time – User – Reason – Management Group – Comments In our other article you …