SCOM Remote Maintenance Mode Scheduler 2.0 R2 Scripts
I have updated the scripts for SCOM Remote Maintenance Mode Scheduler 2.0 to properly support SCOM R2.
Download: MaintenanceModeV4_R2.zip
The old scripts worked ok but if you had a large group of servers it would take a long time with R2. The old scripts would try to put the HealthService and the HealthServiceWatcher in maintenance mode which is no longer necessary with R2.
Another thing I added to the scripts was to not re-set the maintenance mode of a server if it is already in maintenance mode. I have seen instances where a particular server is put into maintenance mode for a long period of time and then a scheduled maintenance mode job will re-set the maintenance mode causing noise and skewed reports.
To install the scripts just rename the old scripts and then copy the new scripts into the same “C:\MaintenanceModeV4” directory.
**You will also might need to Remove the Security from the Downloaded PowerShell Scripts
Please let me know if you come across any issues.
Aengus:
Awesome, thanks Tim!
28 April 2010, 7:33 pmAny plans to include network/snmp devices in the utility?
Cheers,
Aengus
Doug:
If I create a group and the group name has a space in it and place member computers in it, this script will not put that group into maintenance mode. If I run powershell interactively it says “MYGROUPNAME not found”
30 April 2010, 11:17 amLayne:
This has always been a great tool. If I could figure out a way to have it check if the computer is a cluster node, and if so put the entire cluster and all its objects into Maintenance Mode, this would be the ultimate tool. I’ve been using a different script from Kris Bash to do that. While I can’t believe something like this isn’t in the product, I’m thrilled the community can provide such assistance. Thanks Tim!
30 April 2010, 4:58 pmDean:
Fantastic, Cheers Tim.
2 May 2010, 5:36 pmWorks perfect in my R2 environment however, the script does not cater for group names containing a space as Doug has correctly pointed out. Brilliant, nontheless..
Dean:
My lack of patience strikes again!! The script does indeed cater for groups containing spaces and it interacts beautifully with the the Availability Reports i.e. it highlights the period of planned downtime.
Absolute Genius Tool Tim thanks….
2 May 2010, 6:14 pmChris:
After launching the Scheduler and clicking create I keep getting this error: “The network path was not found. (Exception from HRESULT:0×80070035″ What am i missing here?
3 June 2010, 11:51 amBirli:
Hi guys,
25 June 2010, 1:40 amI get an access denied message when I try to schedule the maintenance. Any comments on this?
Tim:
You are having a permission problem. Make sure you are a member of the SCOM admins and that you have admin access to the box that is going to be running the tasks.
28 June 2010, 5:03 pmTim:
You might be having a firewall issue. To to ping the box you are trying to create the task on.
28 June 2010, 5:06 pmKeithk:
I would really like to run this script at the opsmgr command shell, however when I try to run the script and entering parameters, it doesn’t seem to work. Should I just be able to run this at the OpsMgr command shell? Any suggestions how I can do this?
8 July 2010, 4:42 pm