OpsMgr Group Maintenance Mode Script with Prompt for Input

Group maintenance mode script for OpsMgr 2007 that prompts user for input. Intended to be used as a desktop shortcut for easy ad-hoc maintenance mode.

Instructions for use:
http://www.systemcenterforum.org/news/opsmgr-powershell-tip-desktop-shortcut-for-enabling-group-maintenance-mode

Based on “One more group maintenance mode script” from Boris Y at http://blogs.msdn.com/boris_yanushpolsky/attachment/8034871.ashx