Hi All,
Can anyone please provide me the PowerShell script to put agents in Maintenance Mode in SCOM 2012.
I have already tried using the script given in :http://www.systemcentercentral.com/opsmgr-2012-group-maintenance-mode-via-powershell-the-way-it-should-be/ but it doesn't seem to work.
My Scenario is :-
(1) I have created my own custom classes.
(2) I want to put all the objects in this custom class in MM.
(3) When I use the above script, it puts only "windows computer class" objects in MM.
(4) I still get SCOM alerts for "Health Service Heartbeat Failure".
Thanks & regards, Sumit Agrawal