What is the best way to do mass maintenance mode?

I use the following method, which works perfectly, and allows me to schedule regular maintenance windows.

  1. Create a group containing the servers you wish to put into maintenance mode (or more than one group if you have a number of schedules )
  2. Create a windows schedule (or schedules) to run a powershell script.
  3. 3. Download the powershell script in
OpsMgr 2012: Group Maintenance Mode via PowerShell (the way it should be)

And edit the variables as per the article to specify the group name and the number of minutes that you wish the group to be put into maintenance mode.

As you can see from the screenshot above, I have a lot of maintenance mode tasks that are run on a daily basis. Also I have five groups that can be used adhoc to schedule maintenance mode on systems/servers that arise out of our CAB meetings. So far this has worked flawlessly.

It also has the advantage that any issues with the servers during the outage window all alert at the same time, i.e. when the window ends.

3 Likes