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 …

PowerShell Tip of the Week: Get SCCM client version remotely

In Todays tip you will find out how to check SCCM client version. To get this information we will use Get-WMIObject command. SCCM client version Information about SCCM client version is located under SMS_Client class in root\ccm namespace: You can also check SCCM client version remotely on servers from txt file list: To make the output look better we can use the following script.

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

List registry key values for Microsoft Antimalware software (FEP)

Below you can find useful script for checking registry key values from remote machines. In this example we will extract information for Microsoft Anitmalware software (FEP). Script will gather following information: – Log message – Log time – Signatures Last Updated – EngineVersion – AVSignatureVersion – ASSignatureVersion First two checks are for MpCmdRun log file: %windir%\temp\MpCmdRun.log – Activity when performing scans and signature updates Output in console: To get information …

How to change SCSM connector schedule

Have you ever wonder how to change SCSM connector schedule? System Center Service Manager is relatively young product in System Center family. Functionality is not so good like in SCCM or SCOM and for some tasks we need to use Powershell. The critical functionality which is not available in SCSM GUI is adjustment of connector schedule. Todays function gives a possibility to change SCSM connector schedule which is already created. …

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 gather SCCM device collections

If you was working with System Center family, you know purpose of SCCM device collections from SCCM. For those who didn’t have a chance to deal with this I strongly reccomend to read article https://technet.microsoft.com/en-us/library/gg682177.aspx. System Center Configuration Manager console allows user to check all collections to which specific device belongs. What in case that customer want to have a list of collections for some reports? Of course you can …