SCOM 2019 - a powershell command to update properties of SCOM Monitor like Auto Reset

D D 6 Reputation points
2023-03-06T16:04:55.3133333+00:00

Hello Guys,

How can I change Properties of a SCOM monitor using powershell. I have 200 monitors where I'd like to change Auto Reset from 2 hours to 2 minutes. Is there a way to do it using powershell ?

Thanks

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,413 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SChalakov 10,261 Reputation points MVP
    2023-03-08T14:43:56.94+00:00

    Hi,

    I have already done this a couple of weeks ago. I have used this script for the purpose:

    SCOM 2012: Bulk Override Creation for Monitors and Rules using PowerShell

    You just need to specify the respective proerty that needs overriding, liek for example:

    $Override.Property = 'GenerateAlert'
    
    

    What you can also check is the Override Creator Tool as it has some bulk override capabilities. From Kevin Holmans blog:

    SCOM Tools (Kevin Holman)

    You just need to check if you can override a single Param or whether the tools is only capable of disabling workflows in bulk.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
    Regards
    Stoyan Chalakov

    0 comments No comments