Quantcast
Channel: Operations Manager - General forum
Viewing all articles
Browse latest Browse all 11941

PowerShell script to put servers in Maintenance Mode in SCOM 2012

$
0
0

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


Viewing all articles
Browse latest Browse all 11941

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>