Add recovery task

Rudragouda Masaraddi 20 Reputation points
2024-03-22T13:13:28.68+00:00

Hi All

we are created new monitor for monitoring 1074 event id.

once the alert created we need to enable the scom maintenance mode using recovery task.

I have used the cmdlet start-scom maintenance mode but not getting how to pass instance value in the cmdlet

pls help how to make script to pick the instances name automatically like how to pass the argument or parameter value

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,417 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,536 Reputation points
    2024-03-25T07:44:22.83+00:00

    Hi,

    Event ID 1074 is logged when the user initiates a windows system restart or shutdown through Ctrl + Alt + Delete and clicks on Shut Down.

    I guess you want to put server into maintenance mode when it restarts or shutdown.

    SCOM is designed to detect server status, so it does what it's supposed to do.

    If you feel that there are a large number of noise alert, please consider planning your reboot and configuring maintenance windows in advance.

    For noise alert, we could bulk resolved the alerts in console.

    how to pass the argument or parameter value

    Please refer to the article below:

    https://learn.microsoft.com/en-us/powershell/module/operationsmanager/start-scommaintenancemode?view=systemcenter-ps-2022#example-1-put-a-resource-into-maintenance-mode

    0 comments No comments