Updated PowerShell Script – Maintenance Mode

I was recently e-mailed by a colleague regarding the maintenance mode PowerShell script that was originally released by Boris Yanushpolsky (found here) that worked great for RTM/SP1, but was failing when executed on an OpsMgr 2007 R2 agent managed system.  In addition, the script was designed to place an object into maintenance mode for an…

4