Closed ericmattingly closed 9 years ago
Issue is with this statement which is not converting the values correctly and SCOM does not always read this as an Int
$oldCount = ([System.DateTime]::UtcNow - $oldestDate)::Minutes
The below code is a fix for this
$oldCount = [System.Convert]::ToInt32(([System.DateTime]::UtcNow - $oldestDate).TotalMinutes)
The fix is in v1.1.1.2
Both powershell scripts return no value sometimes which causes the SCOM old messages monitor to break