Thats how we do it. Since the scheduling is done in the task scheduler, all you 
need is a group to target and the duration of the MM.

/Fredrik

16 feb 2014 kl. 14:40 skrev "Kevin Holman" 
<[email protected]<mailto:[email protected]>>:

All you need:

http://www.systemcentercentral.com/opsmgr-2012-group-maintenance-mode-via-powershell-the-way-it-should-be/



From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Narendra Bathula
Sent: Sunday, February 16, 2014 3:02 AM
To: '[email protected]<mailto:[email protected]>'
Subject: RE: [msmom] Scheduled Maintenance Mode - SCript/Tool / Sql query 
required urgently -SCOM2007 R2

I tried some of scripts but no use.  If the group members are more than 20 then 
 the agents are not placing in maintenance mode.  Can you please provide couple 
of scripts that worked for you perfectly.  Thanks in advance.

________________________________
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Andrew Kunz
Sent: Sunday, 16 February 2014 12:05 AM
To: [email protected]<mailto:[email protected]>
Subject: RE: [msmom] Scheduled Maintenance Mode - SCript/Tool / Sql query 
required urgently -SCOM2007 R2

you need to get the patching schedule for your servers and put them into 
groups, this has always been our problem, getting the groups,  then do it via a 
group maintenance mode script, many available out there

________________________________
From: [email protected]<mailto:[email protected]>
To: [email protected]<mailto:[email protected]>
Subject: RE: [msmom] Scheduled Maintenance Mode - SCript/Tool / Sql query 
required urgently -SCOM2007 R2
Date: Sat, 15 Feb 2014 22:03:43 +0000
Thanks for replying Fredrik.  Can you please share the script where we can 
provide the input like start date time maintenance mode and end maintenance 
mode date time for a group of servers.

________________________________
From: [email protected]<mailto:[email protected]> 
[mailto:[email protected]] On Behalf Of Sköld Fredrik
Sent: Saturday, 15 February 2014 4:45 PM
To: <[email protected]<mailto:[email protected]>>
Subject: Re: [msmom] Scheduled Maintenance Mode - SCript/Tool / Sql query 
required urgently -SCOM2007 R2

Hi

One way to go could be to trigger MM with powershell executed by the windows 
task scheduler.

/F

15 feb 2014 kl. 22:21 skrev "Narendra Bathula" 
<[email protected]<mailto:[email protected]>>:
Maintenace mode for the SCOM 2007 R2 agents is the Big problem for me all the 
time.   I am running with SCOM 2007 R2. Every week we have a server reboot 
schedule maintenance mode for almost 400 servers.  I think this is a big count 
of servers to reboot in signle window and i tried couple of tools available out 
side for maintenance actvitiy but no luck.   none of the tools was not worked 
perfectly....I think it is also problem with microsoft that is why they have 
not included this feaure in the tool where we can not specify the start date 
for schedule activity.

Please suggest me if is there a tool/script/SQL query  to place the bulk agents 
into maintenance mode for scom 2007 R2.

Basically I am looking for Scheduled maintenance activity that could specify my 
start date and time and maintenance end date and time...?.  Thanks in advance.



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information 
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in 
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on 
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the 
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written 
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please 
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and 
other defects.
----------------------------------------------------------------------------------------------------------------------------------------------------








Reply via email to