SCOM UR

Installing SCOM UR patch on remote computers

In this short articile you will find out how to install SCOM UR patch remotely. In one of the previous articile you can check also how to get information about UR version from remote machines. Installing SCOM UR Below you can find simple example for installing patch 2012 R2 UR14: In my case patch with .msp extension was located on d: drive: First script will create folder d:\temp on remote …

SCOM

End SCOM maintenance mode on multiple servers

Today I would like to share with you a one of SCOM scripts which I use on regular basis. Some of you are working in large scale environment and have to put large amount of servers in SCOM maintenance mode. In this article you will find out how to stop it for some specific machines. End SCOM maintenance mode In one of the previous articles I was describing how to …

Update Rollup

Get SCOM update rollup version remotely

Checking SCOM update rollup version using console is pretty simple. Things are getting a little bit complicated if we want to get this from server. Using WMI or PowerShell commands like Get-Hotfix probably we will not get this information. Update Rollup To check this locally we have to get FileVersion for OMAgentTraceTMFVer.Dll file. Each version is assosiated with one of the Update Rollups. For more information you can visit System …

Approve SCOM pending agents via PowerShell

Recently I had to approve several SCOM pending agents in my environment. Of course I won’t do this manually so I started searching for the answers on internet 🙂 . I found SCOM module command called Approve-SCOMPendingManagement and I decided to create a script based on that and share it with you. Remember that you need appropriate permission to approve servers in pending management. SCOM pending agents Approving single server …

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 information can be found there. It will show …

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