Put any object type in maintenance mode in OpsMgr using Powershell

In OpsMgr, sometimes you may not wish to put the whole computer into maintenance mode. Instead you may wish to put just a number of databases or websites into maintenance mode. This script by Boris Yanushpolsky provides means to put any object into maintenance mode, regardless of class.

Click the link at right to visit the download page on Boris blog at Technet.